android表格布局
2015-08-26 21:54
459 查看
<?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/hello" android:textSize="30sp" /> <TextView android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/hello" android:textSize="30sp" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/hello" android:textSize="30sp" /> <TextView android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/hello" android:textSize="30sp" /> </TableRow> <TableRow android:layout_width="match_parent" android:layout_height="wrap_content" > <TextView android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/hello" android:textSize="30sp" /> <TextView android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="center" android:text="@string/hello" android:textSize="30sp" /> </TableRow> </TableLayout>
表格布局
相关文章推荐
- Android解析JSON方式---- 很好的例子
- 浅析Android中的消息机制
- 详解Android中AsyncTask的使用
- Android跨进程通信的四种方式
- Android设备上获取图片
- android基础篇(一)Activity的生命周期
- 技术小黑屋----深入讲解Android中Activity launchMode
- Android周报
- android连接wifi相关知识
- Android环境变量配置【ANDROID_SDK_HOME】
- gdb调试Android-5.1版本JNI模块
- Android 数据存储---File内部存储
- Android内存泄露检测利器---LeakCanary
- Activity之间信息传递(参数传递)
- Android学习0826<八>(GridView、Spinner、AutoCompleteTextView、Gallery、ExpandableListView)
- Android-主题样式基本方式
- Android学习之四样式、主题、shape、回调
- Android Native层Binder.transact()函数调用 Binder.onTransact() 函数失败分析
- Android-有序广播简单例子
- Android 扫描wifi局域网ip