摘要: 主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-11 23:48 小三小山 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 主xml中<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" tools:context=&quo 阅读全文
posted @ 2013-03-11 23:45 小三小山 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 定义两个xml文件,第一个<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" tools:cont 阅读全文
posted @ 2013-03-11 23:43 小三小山 阅读(258) 评论(0) 推荐(0) 编辑
摘要: <FrameLayout 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" > <ImageView androi 阅读全文
posted @ 2013-03-10 00:48 小三小山 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 在drawable中创建一个xml文件<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" > <corners android:radius="10dp"/> <padding android:left="20dp" /> <solid android:color="#ff000 阅读全文
posted @ 2013-03-10 00:45 小三小山 阅读(150) 评论(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" tools:context=".MainActivity" android:orientation=&quo 阅读全文
posted @ 2013-03-10 00:36 小三小山 阅读(132) 评论(0) 推荐(0) 编辑
摘要: xml<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=".MainActivity" android:orientation=& 阅读全文
posted @ 2013-03-10 00:32 小三小山 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 在drawable-hdpi中创建一个xml用来实现图片的替换工作<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:drawable="@drawable/a1" android:state_pressed="true"/> <item android:draw 阅读全文
posted @ 2013-03-10 00:29 小三小山 阅读(257) 评论(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" ><List 阅读全文
posted @ 2013-03-10 00:27 小三小山 阅读(142) 评论(0) 推荐(0) 编辑
摘要: mainactivity.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" >&l 阅读全文
posted @ 2013-03-10 00:25 小三小山 阅读(133) 评论(0) 推荐(0) 编辑