activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:lay...
布局:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
其他好文 时间:
2015-05-26 09:15:07
阅读次数:
153
<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="match_parent"...
分类:
移动开发 时间:
2015-05-26 00:21:42
阅读次数:
194
1.主布局<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@drawa...
分类:
移动开发 时间:
2015-05-25 16:48:31
阅读次数:
211
1.首先编写main.xml文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientatio...
分类:
微信 时间:
2015-05-25 16:44:58
阅读次数:
925
效果如下:
布局文件activity_main.xml如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"...
分类:
移动开发 时间:
2015-05-25 14:31:57
阅读次数:
239
iOS系统上方的工具栏很漂亮,也很实用,下面让我们来仿制一下吧。
首先新建一个布局文件title.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
其他好文 时间:
2015-05-25 10:11:15
阅读次数:
230
来源于回答频道答题,因此内容都是基于回答频道的原题布局进行
1、布局文件如下
文件名:testxm.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
移动开发 时间:
2015-05-24 23:42:00
阅读次数:
479
文本框:存放文本的<TextViewandroid:id="@+id/textView1"//控件的身份android:layout_width="wrap_content"android:layout_height="wrap_content"//wrap_content适应内容//match_parent填充容器//fill_parent跟match_parent一样的//直接使用整数单位dpandroid:layout_align..
分类:
移动开发 时间:
2015-05-24 06:40:31
阅读次数:
261
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"android:orientation="vertical"android:weightSum="..
分类:
移动开发 时间:
2015-05-23 06:40:43
阅读次数:
187