It may be easier to do this programmatically. You can build your bitmap 
image first, figure out the dimensions of that and resize it if needed. 
Then, change the dimensions of the TextView, if necessary, to match the 
size of the image, probably using LayoutParams. Finally, you can set it as 
the background of the resized TextView as the resized image.

-John

On Wednesday, February 29, 2012 6:51:40 AM UTC-5, Reddy wrote:
>
> 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to