`
a854489422
  • 浏览: 4817 次
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

尝试式android自学教程-linear layout(线性布局)

阅读更多

线性布局 - linear layout


<script src="https://code.csdn.net/snippets/174275.js" type="text/javascript"></script>


1.排列方向的问题

android:orientation="vertical"//垂直排列


android:orientation="horizontal"//横向排列,太多的部件会看不到


2.多层linearlayout的嵌套

<script src="https://code.csdn.net/snippets/174442.js" type="text/javascript"></script>


android:layout_weight="1" //比重,是平均分布组件的方法

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics