界面布局(2)
来源:互联网 发布:开源cms php 编辑:程序博客网 时间:2024/06/03 13:57
RelativeLayout相对布局
<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" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <TextView android:id="@+id/label" android:text="Type here" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/entry" android:background="@android:drawable/editbox_background" android:layout_below="@id/label"/> <Button android:id="@+id/ok" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/entry" android:layout_alignParentRight="true" android:layout_marginLeft="10px" android:text="OK"/> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/cancel" android:layout_toLeftOf="@id/ok" android:layout_alignTop="@id/ok" android:text="Cancel"/></RelativeLayout>
‘
常用的相对布局属性
0 0
- 界面布局(2)
- (3):Silverlight 2 界面布局
- android界面布局2
- 界面布局(1)
- 界面布局(二)
- android界面布局----TableLayout(表单布局)
- android 界面布局(大概)
- 界面的布局(一)
- 一步一步学Silverlight 2系列(3):界面布局
- 一步一步学Silverlight 2系列(3):界面布局
- 界面布局
- 界面布局
- 界面布局
- DirectUI界面编程(四)界面布局详解
- 2.仿微信--登录界面(LoginActivity)布局界面的实现
- (转)【Android】界面布局之TableLayout(表格布局)
- Android布局整合include界面控件(重用布局)
- Android界面布局一---------------LinearLayout(线性布局)
- 多线程之售票安全版
- Creating ADF BC View Object Instances On The Fly!!!!!!
- There is a version mismatch between the spring client and the server
- RTEMS-BBB(七):LED点亮
- Android--SparseArray<E>详细介绍
- 界面布局(2)
- OpenGL环境设置
- C++中malloc/free与new/delete的区别及内存分配失败错误处理
- 【Android应用开发技术:图像处理】Bitmap显示性能优化分析
- NYOJ --277 车牌号
- 中文和Unicode互相转化
- js跳转页面实现
- C# PC 通过bluetooth 连接手机1
- c++调用python实现