ArticleDirectory
Related content: Android: Unit: dip, PX, PT, SP
Android: style and theme
Android: Landscape | portrait switchover
String
Values-ZH // Chinese
- string name = " hello " > hello! string
- <String Name="App_name">Internationalization</String>
Values-en // english
- string name = " hello " > Hello world, i18nactivity! string
- <String Name="App_name">I18n</String>
Values-en-rus // english, USA
- string name = " hello " > Hello world, i18nactivity !, US string
- <String Name="App_name">I18n</String>
Image
Note that the file name is the same
Screen Adaptation
Layout-320x240 (large front)
You can also use layout-land. Layout-port to define different screen interfaces.
You can configure different interfaces in layout with different resolutions.
E.g.
Layout-320x240
-
- <Textview
-
- Android: layout_width="Fill_parent"
- Android: layout_height="Wrap_content"
-
- Android: Text="320x240" />
Layout-480x320
-
- <Textview
- Android: layout_width="Fill_parent"
-
- Android: layout_height="Wrap_content"
-
- Android: Text="480x320" />
Reference: http://www.linuxidc.com/Linux/2012-03/55562.htm
Http://blog.csdn.net/me15933550973/article/details/7173698