摘要: 为什么安卓在各种各样语言的机器上能够使用,这与它的国际化是不可划分的。如果没有国际化这个功能,那么会出现很多很多的问题,出现乱码之类的问题。在安卓中如何实现国际化?在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) 编辑
摘要: 项目需求:list中添加button属性,会使得后面listview不能点击,以下:<LinearLayout 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=".M 阅读全文
posted @ 2013-03-20 01:05 小三小山 阅读(155) 评论(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" > <TextView 阅读全文
posted @ 2013-03-20 01:02 小三小山 阅读(153) 评论(0) 推荐(0) 编辑
摘要: <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" > <ListView andr 阅读全文
posted @ 2013-03-20 01:00 小三小山 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 主界面无需太大的修改,设置一些需要的属性,就行了。<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&quo 阅读全文
posted @ 2013-03-20 00:58 小三小山 阅读(440) 评论(0) 推荐(0) 编辑
摘要: DOM= Document Object Model,文档对象模型,DOM可以以一种独立于平台和语言的方式访问和修改一个文档的内容和结构。换句话说,这是表示和处理一个HTML或XML文档的常用方法。节点根据 DOM,HTML 文档中的每个成分都是一个节点。DOM 是这样规定的:整个文档是一个文档节点每个 HTML 标签是一个元素节点包含在 HTML 元素中的文本是文本节点每一个 HTML 属性是一个属性节点注释属于注释节点xml添加一个listview<RelativeLayout xmlns:android="http://schemas.android.com/apk/re 阅读全文
posted @ 2013-03-18 23:40 小三小山 阅读(147) 评论(0) 推荐(0) 编辑