Hello
Is there a way to use an image size when setting the sizes of a view? I want to create a TextView item with the exact height of a resource image, but I don't want to use the image as a background for the text view.
Thanks a lot
Hello
Is there a way to use an image size when setting the sizes of a view? I want to create a TextView item with the exact height of a resource image, but I don't want to use the image as a background for the text view.
Thanks a lot
If you can get the height of the image, you can use TextView's setHeight. If you read in the image as a Bitmap, you can get the image's height with getHeight.