如下:会造成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>

更多相关文章

  1. Android判断网络状态是否断开+Android完全关闭应用程序+ 本文讲
  2. android 网络访问-图片处理优秀开源项目
  3. Android 获取网络时间
  4. Android获取当前网络状态
  5. Android的网络抓包工具Tcpdump
  6. Android Studio 网络调试
  7. android网络编程——使用Android中的网络连接
  8. 2011.08.31——— android 监听网络变化

随机推荐

  1. Android crop image size
  2. android 图片放大缩小
  3. Android获取本周本月本年的第一天和最后
  4. Android(安卓)Permission List
  5. android 自动化压力测试-monkey 3 命令参
  6. Android实现将View保存成Bitmap的方法
  7. android仿探探图片拖拽功能
  8. android:intent 发送接收数据
  9. Android静态安全检测 -> 证书弱校验
  10. Android 实现图片加水印