常用组件
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
对应若水老师的第六课
一,加入一个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
效果图:布局代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
andro...
分类:
其他好文 时间:
2015-08-04 11:17:14
阅读次数:
143
一个View添加点颜色就搞定了
android:layout_width="fill_parent"
android:layout_marginTop="10dp"
android:layout_height="1dp"
android:layout_marginLeft="5dp"
android...
分类:
移动开发 时间:
2015-08-02 23:29:23
阅读次数:
215
1.创建程序activity_main:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientatio...
分类:
移动开发 时间:
2015-08-02 18:24:36
阅读次数:
184
1.创建程序:
<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="...
分类:
移动开发 时间:
2015-08-02 18:22:28
阅读次数:
174