Android开发之相对布局管理器Relat…
2013-12-30 20:37
330 查看
<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="match_parent"
tools:context=".MainActivity" >
<TextView
android:id="@+id/txt1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="相对布局"
/>
<ImageView
android:id="@+id/img1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher"
android:layout_toRightOf="@id/txt1"/>
<ImageView
android:id="@+id/img2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/touxiang"
android:layout_below="@id/img1"/>
<TextView
android:id="@+id/txt2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="相对布局管理器"
android:layout_below="@id/img2"/>
</RelativeLayout>
相关文章推荐
- android开发4:布局管理器1(线性布局,相对布局RelativeLayout-案例)
- Android手机开发 使用线性布局和相对布局实现Button垂直水平居中
- 【Android应用开发技术:用户界面】布局管理器
- Android笔记---- Android应用的界面开发(1)View和布局管理器
- 【Android开发笔记】 弹出可编辑对话框(布局管理器 LayoutInflater )
- 【Android应用开发技术:用户界面】布局管理器
- android开发:相对布局的一些注释
- 04、Android开发基础之相对布局
- Android开发重点难点1:RelativeLayout(相对布局)详解
- Android开发记录二之线性、表格、相对布局
- 修改Android开发新建工程默认相对布局为线性布局
- Android应用开发学习笔记之相对布局
- Android开发5:布局管理器2(表格布局TableLayout)
- android开发之-相对布局的属性
- 详解Android开发中UI的五种布局管理器教程
- Android开发重点难点:RelativeLayout(相对布局)详解
- Android应用开发———Android中的布局管理器
- Android开发7:布局管理器4(网格布局GridLayout,绝对布局AbsoluteLayout)
- 【Android开发】布局管理器-线性布局
- ANDROID开发相对布局的语句