一、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
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="fill_parent"android:layout_height="fill_parent"tools:context=".MainActivity"><TextViewandroid:id="@+id/text..
分类:
移动开发 时间:
2016-10-18 23:37:43
阅读次数:
225
<LinearLayoutxmlns: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=".MainActivity"><..
分类:
移动开发 时间:
2016-10-18 23:37:37
阅读次数:
230
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-17 14:21:07
阅读次数:
149
1、普通的对话框 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="mat ...
分类:
移动开发 时间:
2016-10-17 11:19:31
阅读次数:
323
1、搭建布局 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="mat ...
分类:
移动开发 时间:
2016-10-17 11:08:20
阅读次数:
258
<?xml
version="1.0"encoding="utf-8"?>-<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">-<LinearLayoutandroid:orientati..
分类:
其他好文 时间:
2016-09-28 19:58:03
阅读次数:
163
<TableLayoutxmlns: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:stretchColumns="1"tools:context=".MainActivity"><Tabl..
分类:
移动开发 时间:
2016-09-26 18:11:21
阅读次数:
177
做之前需要导入XListview的文件,此是用第三方的xListview实现的,东西没写全。此是在Fragment中实现的 // XListView的布局 <me.XListView android:layout_width="fill_parent" android:layout_height=" ...
分类:
其他好文 时间:
2016-09-23 16:32:14
阅读次数:
161
1 <WebView 2 android:id="@+id/webView" 3 android:layout_width="match_parent" 4 android:layout_height="wrap_content"></WebView> ...
分类:
Web程序 时间:
2016-09-20 18:07:47
阅读次数:
139