android 2个按钮 显示在同一列

 
将下列代码放在同一个 线性布局里面
 
<RelativeLayout    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
<Button
    android:id="@+id/buttonClick"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Click"
    android:layout_alignParentLeft="true" />
  
<Button
    android:id="@+id/buttonShare"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Share"
    android:layout_alignParentRight="true" />
</RelativeLayout>
posted @ 2014-11-13 08:43  Rui.peng  阅读(800)  评论(0编辑  收藏  举报