LinearLayout中组件右对齐
来源:互联网 发布:win7数据库安装失败 编辑:程序博客网 时间:2024/06/02 11:14
<?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:background="@drawable/bg" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="左边1" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="左边2" /> <!-- 将TextView包在另一个LinearLayout中 注意android:layout_width和android:gravity这两个属性 --> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="right" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="10dp" android:text="右边" /> </LinearLayout> </LinearLayout>
0 0
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout中组件右对齐
- LinearLayout组件右对齐
- androidのLinearLayout中组件右对齐
- LinearLayout中控件不能居右对齐
- LinearLayout中控件不能居右对齐
- Linearlayout如何右对齐
- 解决LinearLayout中控件不能居右对齐
- 解决LinearLayout中控件不能居右对齐
- CSS问题集锦
- IE盒子模型和标准W3C盒子模型
- PHP 中转换 SGML 类语言为真实中文字符
- 【uboot201607移植到FL2440】添加自己的板子并实现串口的打印
- Java编程思想重点笔记(Java开发必看)
- LinearLayout中组件右对齐
- 数据库进阶之数据库事务(ACID)
- 通过代码关闭程序
- TCP发送接口(如send(),write()等)的返回值与成功发送到接收端的数据量无直接关系 .
- PLSQL性能优化方法
- php综合面试题
- Java获取计算机的名称、IP、环境变量的配置信息
- 理解frame、bounds、center、position、anchorPoint
- poj 1753--Flip Game