首页 > 移动平台 > 详细

android LinearLayout 实现两端对齐

时间:2014-09-20 07:45:16      阅读:588      评论:0      收藏:0      [点我收藏+]
<?xml version="1.0″ encoding="utf-8″?>  
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
    android:layout_width="fill_parent"  
    android:layout_height="fill_parent"  
    android:orientation="horizontal" >  
  
    <Button  
        android:id="@+id/Button01"  
        android:layout_width="wrap_content"  
        android:layout_height="wrap_content"  
        android:text="button01" >  
    </Button>  
  
    <TextView  
        android:layout_width="wrap_content"  
        android:layout_height="wrap_content"  
        android:layout_weight="1" />  
  
    <Button  
        android:id="@+id/Button02"  
        android:layout_width="wrap_content"  
        android:layout_height="wrap_content"  
        android:text="button02" >  
    </Button>  
  
</LinearLayout>  


转载来自:http://airshiplay.iteye.com/blog/1855799

android LinearLayout 实现两端对齐

原文:http://www.cnblogs.com/lvlv/p/3982822.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!