android:layout_alignParentRight=”true”

<?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="wrap_content">    <TextView        android:id="@+id/productname"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="柜子" />    <TextView        android:id="@+id/productnum"        android:layout_alignParentRight="true"        android:layout_marginRight="10dp"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="3" />RelativeLayout>

更多相关文章

  1. 相对布局控制控件居右显示

随机推荐

  1. PowerPC平台 linux移植一
  2. Linux 软件安装到 /usr,/usr/local/ 还是
  3. 请问有谁知道linux上生成的共享库中,使用n
  4. linux kernal oom killer 学习
  5. linux获取网线插拔状态的实现
  6. Mac OSX ipfw 防火墙配置-封端口
  7. 在fc8安装TP-Linux WN3210G+USB无线网卡,
  8. 都能看懂的嵌入式linux/android alsa_apl
  9. 鸟哥linux私房菜笔记--vi
  10. linux测试硬盘读写速度