`
chan.d
  • 浏览: 32019 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

安卓中实现两端对齐,中间fill_parent的方法

阅读更多

安卓中实现两端对齐,中间fill_parent的方法

 

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics