Android_RelativeLayout
来源:互联网 发布:晨曦软件win10 编辑:程序博客网 时间:2024/06/05 18:22
//首先说明啊,我这个是练习书上的代码,不是原创的,写这个也是算督促一下自己吧。个人感觉这个就是能够通过调整相对位置的一个方法吧,什么below 啊 toLetfOf 啊什么的,但是我比较困惑的是,android:background="@android:drawable/editbox_background",这句应该是调整背景的,但是我做出来没什么变化。简直尴尬了。
<?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/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Please input something ! "
/>
<EditText
android:id="@+id/entry"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
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="10dip"
android:text="OK"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/ok"
android:layout_alignTop="@id/ok"
android:text="Cancel"/>
</RelativeLayout>
- Android_RelativeLayout
- Android_RelativeLayout(相对布局)
- Android_RelativeLayout属性大全
- Android_RelativeLayout属性详解
- 自学Android系列 笔记2 Android_RelativeLayout属性大全
- CC2530 2.4G ZigBee 低功耗PCB设计需注意几点
- Maven构建springBoot Demo案例
- 第14周项目1 -(3)验证二叉排序树相关算法
- nefu 26 计算阶乘位数
- 欢迎使用CSDN-markdown编辑器
- Android_RelativeLayout
- 1090. Highways Constraints
- CentOS 6.7安装Sqoop 1.4.6
- 高并发1
- C++11新特性
- 别人搭建
- GridView控件分页显示数据
- 1613-3-傅溥衍 总结《2016年12月1日》【连续第六十二天总结】
- 高并发2