android:layout_width="wrap_content"
    android:layout_height="wrap_content" >


            android:id="@+id/tvName"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_margin="5dp"
        android:text="@string/test_value"
        android:textIsSelectable="true" />


            android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_toRightOf="@id/tvName"
        android:gravity="right" >


                    android:id="@+id/ibTel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:contentDescription="@string/img_btn_tel"
            android:src="@drawable/phone_m" />


                    android:id="@+id/ibMsg"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:contentDescription="@string/img_btn_msg"
            android:src="@drawable/message_m" />
   



在父节点(RelativeLayout)下的LinearLayout中设置为gravity=right,然后把ImageButton中的android:layout_gravity="right"即可。

更多相关文章

  1. Android 节点进度条
  2. c# webservice中访问http和https的wsdl以及生成配置节点的不同之
  3. go语言如何删除链表节点
  4. java对XML文件的解析、节点的增加、删除操作总结
  5. XML(4)XDocument和XmlDocument搜索指定的节点
  6. xml学习(7) .net 获取xml节点或者属性最大值
  7. FireFox对XML的处理兼容IE的节点处理方法
  8. 读写xml所有节点个人小结 和 读取xml节点的数据总结
  9. 详解XML命名空间(XML Namespaces)介绍以及节点读取方法的示例代码

随机推荐

  1. Android周学习Step By Step(6)--Android的
  2. Android用户体验毁在框架设计?
  3. Android的一些属性
  4. Android(安卓)开发中Parcel存储类型和数
  5. android开发学习笔记(4)导入Android工程
  6. 在Mac OS X下安裝Android開發環境和Eclip
  7. 基于android的NFS根文件系统的制作
  8. android 在布局文件中报错:This text fie
  9. Android应用程序与SurfaceFlinger服务的
  10. Android智能手机网络防火墙开发的经验心