从零开始学Android(九)
来源:互联网 发布:淘宝订单清洗 编辑:程序博客网 时间:2024/05/16 07:41
Android四种基本布局
新建项目UILayoutTest进行联系。
1. LinearLayout
LinearLayout又称作线性布局,这个不惧会讲它所包含的控件在线性方向上依次排列。排列方向指定属性:android:orientation可以为vertical/horizonal等。修改xml文件代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button 1" /> <Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button 2" /> <Button android:id="@+id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button 3" /></LinearLayout>
0 0
- 从零开始学Android(九)
- 从零开始学Makefile(九)
- 从零开始学java(九)流程控制
- 从零开始学android<Spinner下拉列表框的使用.九.>
- 从零开始学Android (1)
- 从零开始学Android (2)
- 从零开始学Android (3)
- 从零开始学Android (4)
- 从零开始学Android(〇)
- 从零开始学Android(一)
- 从零开始学Android(二)
- 从零开始学Android(三)
- 从零开始学Android(四)
- 从零开始学Android(五)
- 从零开始学Android(六)
- 从零开始学Android(七)
- 从零开始学Android(八)
- 【从零开始学NGUI 】 (九)分页效果实现
- 6、INSERT INTO 语句
- 数据库恢复工具:DUL、ODU和AUL
- 一个基础的EJB接口
- 配置opencv
- Android代码内存优化建议-OnTrimMemory优化
- 从零开始学Android(九)
- hadoop hive 的使用心得
- 【Linux系统编程】特殊进程之守护进程
- find_end 源码剖析
- tap设备
- 基于内存块的Live555视频直播框架
- 通过ssh反向隧道及nginx反向代理实现外网控制内网nodemcu芯片
- 鼠标和键盘的事件监听
- 【Linux系统编程】进程替换:exec 函数族