Different resolution support android

前端 未结 8 1319
北海茫月
北海茫月 2020-11-22 04:21

Edited Question:

Mobile Resolution:
I would like to design different screen dpi like following resolutions.
320x480,
48

8条回答
  •  感情败类
    2020-11-22 04:39

    Basically you need to create a Text Style something like this:

    
    

    read more about it here http://developer.android.com/guide/topics/ui/themes.html

    And using the android support for different screens guide to create the different sizes you want for different screens in the right res folders as described in: http://developer.android.com/guide/practices/screens_support.html

    Side note: I don't really understand in what situation would you want to do that, using SP units for font sizes will scale the fonts to look more or less the same size on different phones.

提交回复
热议问题