Android线性布局

匿名 (未验证) 提交于 2019-12-03 00:26:01
<!-- 	orientation:vertical:垂直排列 ; 	orientation:horizontal;水平排列;  --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"> 	     <!--     	match_parent:“填充满”父容器;     	wrap_content:包裹内容;      	weight:设置控件与控件的之间的比例      -->     <Button          android:layout_width="match_parent"         android:layout_height="0px"         android:layout_weight="1"         android:text="button1"/>     <Button          android:layout_width="match_parent"         android:layout_height="0px"         android:layout_weight="1"         android:text="button2"/>  </LinearLayout>

转载请标明出处:Android线性布局
文章来源: Android线性布局
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!