android两个控件中部居中xml
来源:互联网 发布:泰牛程序员2017全套 编辑:程序博客网 时间:2024/06/05 10:55
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/select_park"
android:layout_width="80dp"
android:layout_height="120dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="82dp"
android:background="@drawable/park_car" />
<ImageButton
android:id="@+id/select_fetch"
android:layout_width="80dp"
android:layout_height="120dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/select_park"
android:background="@drawable/fetch_car" />
</RelativeLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
</LinearLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:orientation="horizontal" >
<ImageButton
android:id="@+id/select_park"
android:layout_width="80dp"
android:layout_height="120dp"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="82dp"
android:background="@drawable/park_car" />
<ImageButton
android:id="@+id/select_fetch"
android:layout_width="80dp"
android:layout_height="120dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/select_park"
android:background="@drawable/fetch_car" />
</RelativeLayout>
</LinearLayout>
0 0
- android两个控件中部居中xml
- Android控件居中显示
- RelativeLayout中两个控件怎么居中显示
- RelativeLayout中两个控件怎么居中显示?
- Android TextView内容居中和控件居中
- android如何改变editText控件中部分文字的格式
- Android studio Xml 中部分资源文件不提示
- 让android控件水平居中
- 让android控件水平居中
- android图文居中按钮控件
- Android布局 使控件居中
- android控件内容居中及控件布局居中
- android 一行两个按钮居中 布局
- Android -- 设置textview文字居中或者控件居中
- Android -- 设置textview文字居中或者控件居中
- Android中如何让控件居中
- android----设置TextView控件文字居中
- Android动态生成控件居中显示
- cpio initrd 解压
- js通过类名获取元素对象
- 三分钟教你学Git (三)之技巧
- CPU的缓存L1,L2,L3
- jsoup中文参考手册
- android两个控件中部居中xml
- 二维vector访问
- pwd结果保存到变量
- 20140504
- http://blog.csdn.net/angelazy/article/details/24928647
- 在此只写下常见的三种XML解析方法,即DOM解析、SAX解析、DOM4J解析。
- Objective-C中一种消息处理方法performSelector: withObject:
- 有关Libssh2的Win32程序开发中遇到的若干问题的汇总 .
- 在canvas中画三角形的实现