上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: <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" > <Button androi 阅读全文
posted @ 2013-03-26 21:13 小三小山 阅读(161) 评论(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" > <Button androi 阅读全文
posted @ 2013-03-26 21:11 小三小山 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Android预定义样式对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等)你有时需要控制字体的大小。Android平台定义了三种字体大小。"?android:attr/textAppearanceLarge""?android:attr/textAppearanceMedium""?android:attr/textAppearanceSmall"使用方法为:android:textAppearance="?android:att 阅读全文
posted @ 2013-03-25 23:21 小三小山 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 在listview中添加子listview组件package cn.core.test;import android.app.Activity;import android.os.Bundle;import android.util.Log;import android.view.View;import android.widget.ExpandableListView;import android.widget.ExpandableListView.OnChildClickListener;import android.widget.ExpandableListView.OnGroupCli 阅读全文
posted @ 2013-03-25 23:11 小三小山 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 点击屏幕中的按钮,然后就获取到图片在页面中显示出来<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" android:orientation="vertical" 阅读全文
posted @ 2013-03-25 23:04 小三小山 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 在res目录下,有一个values的目录,里面有一个statle.xml文件,里面存放的是android的样式,各种样式,包括主题,等等<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="gangnanstyle"> <item name="android:textColor">#ff0000</item> <item name="android:textS 阅读全文
posted @ 2013-03-25 22:57 小三小山 阅读(176) 评论(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" > <Button androi 阅读全文
posted @ 2013-03-25 22:53 小三小山 阅读(155) 评论(0) 推荐(0) 编辑
摘要: pull解析在android中是一个很重要的解析xml工具,相对其dom还有sax,这个的重要性是不言而喻的。pull解析可以这样用,在res资源目录中创建raw目录,然后在里面创建一个文件 1 <?xml version="1.0" encoding="utf-8"?> 2 <books> 3 <book id='1'> 4 <name>java精通11</name> 5 <price>35.4</price> 6 </book> 7 < 阅读全文
posted @ 2013-03-25 22:48 小三小山 阅读(181) 评论(0) 推荐(0) 编辑
摘要: SAX(simple API for XML)是一种XML解析的替代方法。相比于DOM,SAX是一种速度更快,更有效的方法。在res资源目录下创建一个叫做raw的文件夹,在文件夹中创建如下的xml文件<?xml version="1.0" encoding="utf-8"?><persons> <person id='1'> <name>小王</name> <age>19</age> <sex>男</sex> </person 阅读全文
posted @ 2013-03-22 01:01 小三小山 阅读(145) 评论(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" > <TextV 阅读全文
posted @ 2013-03-21 23:04 小三小山 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页