android LinearLayout 实现两端对齐

<?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

posted on 2014-09-20 07:14  lvlv岁月流逝  阅读(1400)  评论(0编辑  收藏  举报

导航