Android五大布局之RelativeLayout 示例代码
来源:互联网 发布:淘宝卖家三钻 编辑:程序博客网 时间:2024/05/22 04:35
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/numberTV"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="@string/number" />
<EditText
android:id="@+id/numberET"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/numberTV"
android:inputType="phone" />
<TextView
android:id="@+id/contentTV"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_below="@id/numberET"
android:text="@string/content" />
<EditText
android:id="@+id/contentET"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/numberET"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/contentTV"
android:ems="10"
android:inputType="textMultiLine"
android:lines="3" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/contentET"
android:onClick="onClick"
android:text="@string/send" />
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/numberTV"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="@string/number" />
<EditText
android:id="@+id/numberET"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/numberTV"
android:inputType="phone" />
<TextView
android:id="@+id/contentTV"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:layout_below="@id/numberET"
android:text="@string/content" />
<EditText
android:id="@+id/contentET"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/numberET"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/contentTV"
android:ems="10"
android:inputType="textMultiLine"
android:lines="3" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/contentET"
android:onClick="onClick"
android:text="@string/send" />
</RelativeLayout>
效果图:
- Android五大布局之RelativeLayout 示例代码
- android五大布局之-RelativeLayout
- 五大布局之RelativeLayout
- android五大布局之RelativeLayout(相对布局)
- Android--五大布局(2)相对布局RelativeLayout
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android基础教程(二)之五大布局对象—FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android基础教程之五大布局对象------FrameLayout,LinearLayout,AbsoluteLayout,RelativeLayout,TableLayout
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android基础教程(二)之五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android五大布局对象 - FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android五大布局对象:FrameLayout,LinearLayout,AbsoluteLayout,RelativeLayout,TableLayout
- Android 五大布局对象---FrameLayout,LinearLayout ,AbsoluteLayout,RelativeLayout,TableLayout.
- Android 五大布局(LinearLayout、FrameLayout、AbsoulteLayout、RelativeLayout、TableLayout )
- 负数如何转换成二进制
- 内外网能互相访问对方资源
- 不安装oracle客户端也可以使用pl/sql developer
- 【MFC基础入门】LabJack的研究
- C# 简易图片抽奖器的实现
- Android五大布局之RelativeLayout 示例代码
- 服务器或VPS用户如何用命令创建MYSQL数据库
- system.img ext4 and yaffs2
- Android USB Host
- ubuntu中apt-get设置网络代理
- 30天自制操作系统笔记 第0天
- Log4j每天、每小时、每分钟定时生成日志文件
- SQLSERVER2008 18456错误
- TList