Wednesday, February 29, 2012

[android-developers] Re: View height changes when image set as background by 1.25 times of the image height

hi Murali , 
use  android:scaleType="fitXY "
Moktarul 


On Wednesday, 29 February 2012 16:58:35 UTC+5:30, Reddy wrote:
Hi,

I have a .png file. I set this as the background of a TextView and the
height and width of the TextView are wrap context. The ideal behavior
here is that the height and width of the textview should be of height
and width of the .png file.

But what i am getting is that size of text view is getting increased
1.25 times of the image size.
If any has solved this issue, please help me.

Thanks in advance.

Regards,
Murali

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment