当前位置: 代码迷 >> Android >> note 十- android table layout and dialog window
  详细解决方案

note 十- android table layout and dialog window

热度:455   发布时间:2016-05-01 12:39:31.0
note 10- android table layout and dialog window

?

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:stretchColumns="1"    >            <TableRow>        <TextView            android:text="row 1 column1"            android:padding="3dp"            />        <TextView            android:text="row 1 colume2"            android:gravity="right"            android:padding="3dp"            />    </TableRow>        <TableRow>        <TextView            android:text="row 2 colume1"            android:padding="3dp"            />        <TextView            android:text="row 2 column2"            android:gravity="right"            android:padding="3dp"            />            </TableRow>        <TableRow>        <Button             android:id="@+id/secondButt"            android:layout_width="fill_parent"            android:layout_height="wrap_content"        />    </TableRow>                        </TableLayout>

?

?Dialog window:

?

set at the AndroidManifest.xml

?

?

 <activity android:name="SecondActivity"            android:theme="@android:style/Theme.Dialog">             </activity>
?

?

?

  相关解决方案