• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add thumbnail image to textview using thumbnailutils class

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
please share me,how to add thumbnail image to textview using thumbnailutils class.I'm able to add image to textview using
Drawable img = Drawable.createFromPath(imagePath);
img.setBounds(0,0, 50,50);

tv.setCompoundDrawables(img,null,null,null);
but my requirement is to make an image as thumbnail using thumbnailutils class and it should be added to textview...i'm not finding solution.
with the help of thumbnailutils could this possible to make thumbnail images ,these images are in Sdcard.
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to use TextView to show an image?? ImageView is generally used to show an image...
 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wanted to take the preview of the text.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic