zoukankan      html  css  js  c++  java
  • 控件布局_TableLayout

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="fill_parent"
     4     android:layout_height="fill_parent"
     5     android:stretchColumns="0">
     6     <!--android:stretchColumns="0">:表示如果有剩余空间 时 第几列拉伸      0表示第一列,跟java的思想一样-->
     7     <TableRow>
     8         <TextView
     9             android:text="row1_column1"
    10             android:background="#aa0000"
    11             android:padding="3dip" />
    12         <TextView
    13             android:text="row1_column1"
    14             android:padding="3dip"
    15             android:gravity="center_horizontal"
    16             android:background="#00aa00"/>
    17         <TextView
    18             android:text="row1_column2"
    19             android:gravity="right"
    20             android:background="#0000aa"
    21             android:padding="3dip" />
    22     </TableRow>
    23 
    24     <TableRow>
    25         <TextView
    26             android:text="row2_column1"
    27             android:padding="3dip" />
    28         <TextView
    29             android:text="row2_column2"
    30             android:gravity="right"
    31             android:padding="3dip" />
    32     </TableRow>
    33 </TableLayout>
  • 相关阅读:
    面向对象进阶
    20191011作业
    2019.10.10作业
    类的继承
    面向对象
    2019.10.09作业
    pandas模块
    [BZOJ 2190][SDOI2008]仪仗队(欧拉函数)
    [BZOJ 2729][HNOI2012]排队(组合数学+高精)
    [BZOJ 1491][NOI2007]社交网络(Floyd)
  • 原文地址:https://www.cnblogs.com/LO-ME/p/3585640.html
Copyright © 2011-2022 走看看