布局
2016-04-19 20:14
274 查看
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:hint="0" android:gravity="bottom|right" android:textSize="40dp" /> <TableRow> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:textSize="40dp" android:text="C"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="◀" android:textSize="40dp" /> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="∧" android:textSize="20dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="+" android:textSize="40dp"/> </TableRow> <TableRow> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="1" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="2" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="3" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="—" android:textSize="40dp"/> </TableRow> <TableRow> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="4" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="5" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="6" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="×" android:textSize="40dp"/> </TableRow> <TableRow> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="7" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="8" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="9" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="÷" android:textSize="40dp"/> </TableRow> <TableRow> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="0" android:layout_span="2" android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="." android:textSize="40dp"/> <Button android:layout_height="match_parent" android:layout_width="match_parent" android:layout_weight="1" android:text="=" android:textSize="40dp"/> </TableRow> </TableLayout>
相关文章推荐
- iOS开发- 相机(摄像头)获取到的图片自动旋转90度解决办法
- 冒泡排序
- 选择排序
- 前端网址总结
- 合并表记录之机试
- 第一冲刺阶段(第二天)
- [转]C++11 多线程
- 在eclipse找不到tomcat的webapp下的项目目录
- 插入排序
- 几种hibernate原生sql查询返回值
- 希尔排序
- 最小生成树 (Minimum Spanning Tree,MST) --- Prim算法
- 关于synchronized的整理
- PE 190 【拉格朗日乘数】
- 公司注册之简化版
- 快速排序
- iOS 学习笔记之懒加载
- 堆排序
- javascript中的对象、类学习(转) 好文章,看明白了很多概念
- 第一冲刺阶段 工作总结 01