android简单demo学习系例之排版(TableLayout)[xml-based]
2009-02-06 21:18
671 查看
在eclipse下利用android开发插件,来写基于xml-based的图形界面很简单也很方便.
在outline或效果界面中选中所编辑的节点(View),接着在下边 的Property窗口下其对应的属性列表中填写自定义的属性值.
结果出来的Layout文件如下(可以查看如下文件来填写节点属性值-在上面的步骤)
在outline或效果界面中选中所编辑的节点(View),接着在下边 的Property窗口下其对应的属性列表中填写自定义的属性值.
结果出来的Layout文件如下(可以查看如下文件来填写节点属性值-在上面的步骤)
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TableLayout android:id="@+id/sTableLayout" android:layout_width="wrap_content" android:layout_height="wrap_content"> <TableRow > <ImageView android:background="@drawable/bg1"/> <EditText/> </TableRow> <TableRow> <ImageView android:background="@drawable/bg2"/> <EditText/> </TableRow> </TableLayout> <Button android:id="@+id/exitButton" android:text="退出" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/sTableLayout" android:layout_marginTop="20sp"/> </RelativeLayout>
相关文章推荐
- android简单demo学习系例之排版(TableLayout)[code-based]
- android简单demo学习系例之排版(LinearLayout)[xml-based]
- android简单demo学习系例之排版(LinearLayout)[code-based]
- Android简单练习(TableLayout)
- android学习--Android五大布局对象---FrameLayout,LinearLayout,AbsoluteLayout,RelativeLayout,TableLayout.
- Android学习第四天之表格布局TableLayout
- 一个简单的demo学习Android远程Service(AIDL的使用)
- android开发学习之-----界面布局 TableLayout + TableRow
- Android表格布局TableLayout简单实现(Java动态添加,设置边框,删除数据(单行,多行))
- Android TableLayout布局学习
- RxAndroid从零开始学习之一(RxJava的简单Demo)
- Android TableLayout官方文档 例子学习笔记
- APIDemo学习笔记——Android上几种简单的Animation使用方法(一)
- Android中Spinner下拉列表(简单layout.xml,ArrayAdapter和自定义Adapter实现)及下拉框提示prompt问题
- Android 排版库:FlexboxLayout简单使用。
- APIDemo学习笔记——Android上几种简单的Animation使用方法(二)
- APIDemo学习笔记——Android上几种简单的Animation使用方法
- 学习android笔记(5) 动态建立TableLayout 表格布局
- [转]Android TableLayout学习
- Android学习路之tablelayout