Monday 15 July 2013

letter in textview on android is too low -


I have developed a game in which text is within 1 character of the box. Everything works fine in the emulator, but when I try to see it on my phone, the letter is rolled down, and cuts the letter in the middle

Currently, my style is this The type is:

  & style; Name = "moveLetter" & gt; & Lt; Item name = "Android: layout_width"> gt; @ Dimen / BoxSize & lt; / Item & gt; & Lt; Item Name = "Android: Layout_High"> gt; @ Dimen / boxsize & lt; / Item & gt; & Lt; Item name = "Android: Background" & gt; @drawable / blue_box_md_lighter & lt; / Item & gt; & Lt; Item name = "android: contentDescription" & gt; @ String / temporary & lt; / Item & gt; & Lt; Item name = "Android: gravity" & gt; Center & lt; / Item & gt; & Lt; Item name = "Android: Scalping" & gt; Fit Center & lt; / Item & gt; & Lt; Item name = "Android: Text Style" & gt; Bold & lt; / Item & gt; & Lt; Item name = "Android: Typeface" & gt; Serif & lt; / Item & gt; & Lt; Item name = "Android: Visibility" & gt; Appears & lt; / Item & gt; & Lt; / Style & gt;   

I use this style in my XML (partially):

    TextView style =" @ style / moveLetter "Android: Android: Android: Android: layout_marginLeft =" 180dp "Android: layout_margintop =" 175dp "Android: TextIsHable =" True "/> & Lt; TextView style = "@ Style / Move Latr" Android: Android: Android: Android: layout_marginLeft = "240dp" Android: Leaut_margintop = "175dp" Android: Tekstaisacharebl = "true" / & gt; & Lt; TextView style = "@ Style / Move Latr" Android: Android: Android: Android: layout_marginLeft = "300dp" Android: Leaut_margintop = "175dp" Android: Tekstaisacniy = "true" / & gt;   

I style - Padingbotm, Padingtop, Leaut_guariti = center of gravity = Leaut_haysontl, Gravity = Leaut_wartekl: have tried several options to add all did not help

As far as the right / left alignment - well, this letter is in the center of textviewview.

I appreciate any help you need to give ..

Try specifying textSize , and minimize it with your BoxSize dimen Different letters have different dimensions, so it will be difficult to get corrected in different density devices.

No comments:

Post a Comment