hi do this , first drag a txtview , then in properties go background and select icon from drawable. then remove txt from the text view
On Thu, Mar 1, 2012 at 12:21 PM, moktarul anam <[email protected]> wrote: > Reddy, > hmm... do this way.. > in textview setbackground .. one xml file .. that file will be in drawable > file > > and there u set background. Basically u add set background drawable xml > > Moktarul > > > > > On Wednesday, 29 February 2012 17:21:40 UTC+5:30, 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 -- 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

