如下:会造成imagebutton被遮盖
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
>
<ImageButton
android:id="@+id/proper_scan_result_refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/refresh"
android:layout_marginTop="3dip"
android:layout_marginRight="5dip"
android:layout_alignParentRight="true"
/>
<TextView
android:id="@+id/proper_scan_result_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="请您选择要连接的网络"
style="?android:attr/textAppearanceLarge"
android:textColor="#3a3a3a"
android:paddingLeft="10dip"
android:gravity="left|center_vertical"
android:background="@drawable/system_title_bg"
/>
</RelativeLayout>
但如果这样写,则imagebutton会浮在textview之上
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
>
<TextView
android:id="@+id/proper_scan_result_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="请您选择要连接的网络"
style="?android:attr/textAppearanceLarge"
android:textColor="#3a3a3a"
android:paddingLeft="10dip"
android:gravity="left|center_vertical"
android:background="@drawable/system_title_bg"
/>
<ImageButton
android:id="@+id/proper_scan_result_refresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/refresh"
android:layout_marginTop="3dip"
android:layout_marginRight="5dip"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
分享到:
相关推荐
解决android中控件放大被其他控件遮盖的问题
主要介绍了利用Android中控件GridView实现设置行列分割线的方法,文中给出了详细的介绍与示例代码,相信对大家具有一定的参考价值,有需要的朋友们下面来一起看看吧。
可以在控件上直接显示本地sd卡中的图片,便于将网络下载的图片在本地显示。不需要每次运行程序都进行网络加载图片并显示到控件上。
因为项目需要做了一个效果,就是当某个操作按钮滑动顶部是固定在顶部,不让其隐藏,让用户无时无刻都可以实现这个操作。 这个效果不是很神奇,就个人来说呢,很有用。无形间增加了用户体验鸟
C#中控件缩写大全C#中控件缩写大全C#中控件缩写大全C#中控件缩写大全C#中控件缩写大全C#中控件缩写大全
可视化通用中控程序: 可视化编辑界面,支持鼠标拖曳式布局界面,自定义控制指令(UDP、TCP、串口、网络唤醒、页面跳转等) 支持用户使用自己设计的背景图片和按钮样式。 支持一键开启、关闭所有设备 支持将设置好的...
C#中控件的缩写大全C#中控件的缩写大全C#中控件的缩写大全C#中控件的缩写大全
名称:中控程序(包含PC端和Android平板端程序) 功能:用户可以自定义界面,按钮样式,自定义中控指令:UDP、TCP、串口,网络唤醒和页面跳转等指令。 支持一键全开和一键全关功能。 可以控制电脑、投影和继电器等...
达夫xg2021中控台上配件一整套达夫xg2021中控台上配件一整套达夫xg2021中控台上配件一整套达夫xg2021中控台上配件一整套达夫xg2021中控台上配件一整套达夫xg2021中控台上配件一整套达夫xg2021中控台上配件一整套达夫...
Android——给控件添加动画 为一个Layout里面的控件,或者右是一个ViewGroup里面的控件设置动画。
android 5.0 6.0 详情描述
中控系统Android源码
开发者可以使用各个类中函数,开发操作中控Android设备的应用。SDK包括以下功能: 身份证阅读:主要是操作身份证阅读设备,如初始化设备、打开设备,获取信 息,关闭设备等; 照片解码:解析身份证照片
WTL中控件消息实现
VS2010中控件MSComm的使用
中控考勤机常见问题及解决办法
解决dialog中控件随主框架自动调整大小,可以自定义每一个控件在水平、垂直方向的百分比,比较实用。
中控编程软件大型场景中控系统编程设置
WinCe多线程访问winform中控件 能否防止异常
IDCardReader SDK(中控智慧身份证阅读器sdk),包括 用户手册,安卓客户端,windows客户端。开发dll文件。