先看欢迎界面的布局
activity_welcome.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
a...
分类:
其他好文 时间:
2015-03-14 23:14:50
阅读次数:
200
基于数组的ListViewlistview1.xml<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"android:layout_height="match_parent">
<ListView
android:layout_wi..
分类:
移动开发 时间:
2015-03-14 20:16:16
阅读次数:
153
基于ArrayAdapter创建ListView程序清单listview2.xml<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"android:layout_height="match_parent">
<ListView
..
分类:
移动开发 时间:
2015-03-14 20:15:58
阅读次数:
230
使用SimpleAdapter创建ListView程序清单1<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"android:layout_height="match_parent">
<ListView
android:lay..
分类:
移动开发 时间:
2015-03-14 20:11:14
阅读次数:
269
1.布局实现:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizont...
分类:
移动开发 时间:
2015-03-14 17:06:09
阅读次数:
1416
1、主页面布局文件
activity_main.xml(只有2个button按钮)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_paren...
分类:
其他好文 时间:
2015-03-13 00:31:33
阅读次数:
156
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vert...
分类:
移动开发 时间:
2015-03-12 20:53:25
阅读次数:
182
直接在你的layout文件的开头加一个FrameLayout ,里面放一个ImageView,因为只有android:src可以设置android:scaleType,android:background是无法设置的,我的代码:
android:layout_width="fill_parent"
android:layout_height="fill_parent">...
分类:
移动开发 时间:
2015-03-09 22:31:10
阅读次数:
343
main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-03-09 12:59:05
阅读次数:
202
main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-03-06 11:23:31
阅读次数:
201