main4.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:id="@+id/listView4_1_1"
..
分类:
移动开发 时间:
2016-12-13 16:37:23
阅读次数:
231
要实现这种效果,LinearLayout的嵌套实现2.使用RelativeLayout<?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"
android:..
分类:
移动开发 时间:
2016-12-09 01:34:16
阅读次数:
226
先写结论 布局适配: 1、不使用相对布局,尽量使用百分比布局 2、尽量使用match_parent 3、能够使用权重的地方尽量使用权重(android:layout_weight) 4、如果是纯色背景,尽量使用android的shape 自定义 5、如果需要在特定分辨率下适配,可以在res目录上新建 ...
分类:
移动开发 时间:
2016-12-05 02:34:14
阅读次数:
233
<EditText android:id="@+id/et_phoneNum" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@null" android:di ...
分类:
其他好文 时间:
2016-12-01 11:55:06
阅读次数:
234
主界面 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" ...
分类:
移动开发 时间:
2016-12-01 01:38:03
阅读次数:
294
AT_MOST 表示最大是多大. UNSPECIFIED 不确定是多大, 你想多大就多大,我尽量满足你. EXACTLY 就这么大 已经指定了大小 MATCH_PARENT 为什么说MATCH_PARENT 因为 MATCH_PARENT 就是间接说 我要占据父控件剩下的那部分了。 这就相当于指定了 ...
分类:
移动开发 时间:
2016-11-27 13:42:16
阅读次数:
203
常见控件的使用方法 1.TextView(主要用于在界面上显示一段文本信息)。 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" a ...
分类:
移动开发 时间:
2016-11-26 09:35:10
阅读次数:
284
activity_main.xml <RadioGroup android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:layout ...
分类:
其他好文 时间:
2016-11-17 13:02:15
阅读次数:
205
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="match_parent ...
分类:
移动开发 时间:
2016-10-25 19:22:18
阅读次数:
318
一、LinearLayout线性布局(1)线性布局分为垂直和水平两个方向android:orientation="vertical"
android:orientation="horizontal"(2)定义宽和高铺满父级容器:match_parent
根据内容自适应:wrap_contentandroid:layout_width=""
android:layout_height=""(3)设置权重andr..
分类:
移动开发 时间:
2016-10-22 18:37:20
阅读次数:
241