使用LinearLayout做到充满并两端对齐显示
来源:互联网 发布:linux用户忘记密码 编辑:程序博客网 时间:2024/05/29 16:32
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:layout_marginBottom="5dp"
android:orientation="horizontal"
android:gravity="bottom">
<TextView
android:id="@+id/tv_nametip"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="25dp"
android:maxLines="2"
android:ellipsize="end"
android:textColor="@color/gray_text"
android:textSize="11sp"
android:text="备注:反正就是个备注而已"/>
<TextView
android:id="@+id/tv_tickets"
android:layout_width="wrap_content"
android:layout_weight="0"
android:layout_height="wrap_content"
android:textColor="@color/gray_text"
android:textSize="11sp"
android:text="剩余车票35"/>
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:layout_marginBottom="5dp"
android:orientation="horizontal"
android:gravity="bottom">
<TextView
android:id="@+id/tv_nametip"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="25dp"
android:maxLines="2"
android:ellipsize="end"
android:textColor="@color/gray_text"
android:textSize="11sp"
android:text="备注:反正就是个备注而已"/>
<TextView
android:id="@+id/tv_tickets"
android:layout_width="wrap_content"
android:layout_weight="0"
android:layout_height="wrap_content"
android:textColor="@color/gray_text"
android:textSize="11sp"
android:text="剩余车票35"/>
</LinearLayout>
阅读全文
0 0
- 使用LinearLayout做到充满并两端对齐显示
- LinearLayout控件两端对齐
- LinearLayout中的控件两端对齐
- LinearLayout中的控件两端对齐
- LinearLayout中的控件两端对齐
- [Android]使用webview模拟textview显示两端对齐
- LinearLayout中的控件两端对齐 或 Button、TextView左右对齐
- Android TextView两端对齐、文本两端对齐
- text-align:justify两端对齐的使用及注意事项
- css文字两端对齐
- css文字两端对齐
- CSS两端对齐
- 设置文字两端对齐
- 文字左右两端对齐
- CSS 文本两端对齐
- css:文本两端对齐
- css:文本两端对齐
- css:文本两端对齐
- 一个Python单元测试的例子
- wincc新手之路-安装与授权
- HYSBZ-1853 幸运数字(容斥原理,dfs)
- Maven_Spring_Ehcache 实例
- javascript面向对象——几种常见的设计模式
- 使用LinearLayout做到充满并两端对齐显示
- js中的this
- python面向对象小细节
- ADO和ADO.NET的区别(数据访问角度)
- CGContextRef画不完整的圆
- c语言-求两圆交点
- UVA11374[Airport Express] dijkstra/spfa+枚举
- TCP 三次握手
- 第一届机电汇产业联盟供需对接会成功举办