Wednesday, February 29, 2012

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

Hi Moktarul,

Still i am facing the same problem.

Let me clarify my problem clearly.

My .png height is 53px.
When png set as BG of TextView, and the textview properties are wrap
context, the height of the textview is becoming big.
When i set the textview height to 53px then the height of the TextView
is 53px.

Please provide me solution if u have.

Regards,
Murali

On Feb 29, 4:35 pm, moktarul anam <mokta...@gmail.com> wrote:
> 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