android:universal:文字and图片and屏幕适配

 相关内容:android:单位dip,px,pt,sp 

               android:Style and Theme 

              Android :landscape||portrait 切换

字符串  


values-zh      //中文

  1. <string name="hello">你好!</string>  
  2.    <string name="app_name">国际化</string>  

values-en      //英文

  1. <string name="hello">Hello World, I18nActivity!</string>  
  2.    <string name="app_name">I18n</string>  

values-en-rUS    //英文,美国

  1. <string name="hello">Hello World, I18nActivity!,US</string>  
  2.     <string name="app_name">I18n</string>  

图片

注意文件名得一样

 屏幕适配


layout-320x240 (大的放在前面)

亦可以layout-land. layout-port 定义横竖屏不同的界面

然后可在不同分辨率的layout中配置不同的界面

e.g.

Layout-320x240

  1. <TextView  
  2.         Android:layout_width="fill_parent"  
  3.         Android:layout_height="wrap_content"  
  4.         Android:text="320x240" />  

Layout-480x320

    1. <TextView  
    2.         Android:layout_width="fill_parent"  
    3.         Android:layout_height="wrap_content"  
    4.         Android:text="480x320" /> 

 

 

参考:http://www.linuxidc.com/Linux/2012-03/55562.htm

http://blog.csdn.net/me15933550973/article/details/7173698

原文地址:https://www.cnblogs.com/mybkn/p/2491065.html