摘要: 方式一:xml中<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <TextV 阅读全文
posted @ 2013-03-21 23:04 小三小山 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 为什么安卓在各种各样语言的机器上能够使用,这与它的国际化是不可划分的。如果没有国际化这个功能,那么会出现很多很多的问题,出现乱码之类的问题。在安卓中如何实现国际化?在res目录中,如果想要创建values的其他国家的语言,比如中国的话就可以创建一个文件夹,名叫:values-zh这样,当android语言切换到中文的时候就可以显示里面的内容,例如下面的两个xml文件分别在values-zh中和values中在values中<?xml version="1.0" encoding="utf-8"?><resources> <s 阅读全文
posted @ 2013-03-21 22:48 小三小山 阅读(159) 评论(0) 推荐(0) 编辑
摘要: xml中<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <ToggleBut 阅读全文
posted @ 2013-03-21 01:00 小三小山 阅读(125) 评论(0) 推荐(0) 编辑
摘要: xml<?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:layout_width="match_p 阅读全文
posted @ 2013-03-21 00:59 小三小山 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 创建三个xml,主xml中<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > 阅读全文
posted @ 2013-03-21 00:58 小三小山 阅读(133) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:layout_width=" 阅读全文
posted @ 2013-03-21 00:55 小三小山 阅读(150) 评论(0) 推荐(0) 编辑