Wednesday, 15 February 2012

java - Android Studio - Is there a way to show different text optimized for a smaller screen in a button? -


I am an amateur Android developer.

In my app I have buttons in a relative layout. This is an app running on a Nexus 4. Favorite button text fits perfectly ()

I worry about how it will look on a smaller phone than the Nexus 4.

What I have to do is appear on devices of a different string, which can not fit in the "preferred string" in a row, possibly a string of text that is replaced by a "favorite" "Favs" says ()

Is there a way to code it in my activity_main.xml or do I have to create a new XML file designed for small phones.

I suggest putting the icon above the text to increase the room. Also remember that abbreviations can not be possible in different languages, and English is a medium length language (hopefully the Russian string has been twice a long time, it is usually a problem language).

But yes, in general you will need many designs for different sections of the phone. What looks good on tablets, tablets, normal phones and small phones are all different, generally you target the normal phone, it will look great on fables, and then you can rear smaller and smaller for tablets. Will do the design.


No comments:

Post a Comment