星空网 > 软件开发 > 操作系统

Android linearlayout常用布局

用linearlayout完成这样的布局效果,这样的布局还是比较常用的,具体的

Android linearlayout常用布局images/loading.gif' data-original="http://images2015.cnblogs.com/blog/881556/201601/881556-20160115133842272-351437486.png" />

<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_weight="1" >

<Button
android:id="@+id/button1"

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="right">

<Button
android:id="@+id/button2"

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />

</LinearLayout>

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1">

<Button
android:id="@+id/button3"

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />

</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="bottom"
>

<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>

<Button android:id="@+id/button4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /><LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="right" >

<Button
android:id="@+id/button5"

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>

 

</LinearLayout>

</LinearLayout>

</LinearLayout>

 




原标题:Android linearlayout常用布局

关键词:Android

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

cfr空运:https://www.goluckyvip.com/tag/16966.html
CFS 集装箱货运站 :https://www.goluckyvip.com/tag/16967.html
cfs空运:https://www.goluckyvip.com/tag/16968.html
CGF LITE:https://www.goluckyvip.com/tag/16969.html
爆款打造路线:https://www.goluckyvip.com/tag/1697.html
CGF订单:https://www.goluckyvip.com/tag/16970.html
从创新到领航:用友YonSuite正在树立中国SaaS产业新标杆:https://www.kjdsnews.com/a/1836558.html
美属萨摩亚/American Samoa/美利坚合众国属萨摩亚:https://www.kjdsnews.com/a/1836559.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流