首页 > 代码库 > android LinearLayout 实现两端对齐

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

android LinearLayout 实现两端对齐