设计界面:
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainA...
分类:
移动开发 时间:
2015-08-09 18:50:13
阅读次数:
251
activity布局:布局很简单,只有一个listview
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2015-08-08 09:08:20
阅读次数:
145
常用组件
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
android:layout_width="wrap_content"
android:id="@+id/textV...
分类:
移动开发 时间:
2015-08-08 00:04:40
阅读次数:
126
1、xml中引用ViewPager
android:id="@+id/viewPager"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="...
分类:
其他好文 时间:
2015-08-07 20:18:23
阅读次数:
166
1.XML
<TextView
android:id="@+id/tv_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:scrollbars="v...
分类:
移动开发 时间:
2015-08-07 19:58:23
阅读次数:
168
android 5.0 后google终于在 support v4 包下 增加了下拉刷新的控件
项目地址: https://github.com/stormzhang/SwipeRefreshLayoutDemo
xml:
android:id="@+id/swipe_container"
android:layout_width="match_parent"
and...
分类:
移动开发 时间:
2015-08-07 13:29:50
阅读次数:
142
对应若水老师的第六课
一,加入一个button并用外部类绑定事件
//XML文件:
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layou...
分类:
移动开发 时间:
2015-08-07 13:19:21
阅读次数:
128
一:线性布局
LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bac...
分类:
移动开发 时间:
2015-08-06 20:34:20
阅读次数:
131
一:xml布局文件控制UI界面
activity_main.xml
FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
Tex...
分类:
移动开发 时间:
2015-08-06 20:33:57
阅读次数:
164
现象安卓中使用listview时条目与条目间会出现一条分割线,以前并没有在意过。今天仔细看了美工给出的效果图,条目间是没有分割线的。此处我们需要设置一下listview的属性
<ListView
android:id="@+id/lv_ordertype"
android:layout_width="match_parent"
android:lay...
分类:
移动开发 时间:
2015-08-06 16:50:07
阅读次数:
220