刚学习android, 想做个计算器,很简单的xml部局,也达不到效果.有图,请高手来指点下! 看看这个http://www.cnblogs.com/tianzhijiexian/p/3855573.html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果不改变布局的话,那就只有指定button的android:layout_width的具体数值了。。 建议你用GridLayout效果会好一些,http://blog.csdn.net/xdwyyan/article/details/40709653 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/tv_dis_result" android:layout_width="match_parent" android:layout_height="39dp" android:layout_margin="10dp" android:ems="18" > </TextView> <TableLayout android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns="0,1,2" > <TableRow android:layout_weight="1" > <Button android:layout_width="1dp" android:layout_height="match_parent" /> <Button android:layout_width="1dp" android:layout_height="match_parent" /> <Button android:layout_width="1dp" android:layout_height="match_parent" /> </TableRow> <TableRow android:layout_weight="1" > <Button android:layout_width="1dp" android:layout_height="match_parent" /> <Button android:layout_width="1dp" android:layout_height="match_parent" /> <Button android:layout_width="1dp" android:layout_height="match_parent" /> </TableRow> </TableLayout></LinearLayout> 二维码扫描的运用 android 如何实现多级树形结构图(至少5级) 分享两道经典的面试题,同时求答案。。 android4.0.4 3G网络不能看视频,wifi可以看视频。 ScrollView 不满时 容器无法截获ontouch事件 关于SQLite数据库如何导入数据 apk 之间通信 android中格式化硬盘的方法 mac10.10中eclipse运行android项目识别不了设备。 Android中SQLite对图像的处理 DatePicker监听器不起作用 安卓开发上如何记录按钮点击的次数
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TextView
android:id="@+id/tv_dis_result"
android:layout_width="match_parent"
android:layout_height="39dp"
android:layout_margin="10dp"
android:ems="18" >
</TextView> <TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:stretchColumns="0,1,2" > <TableRow android:layout_weight="1" > <Button
android:layout_width="1dp"
android:layout_height="match_parent" /> <Button
android:layout_width="1dp"
android:layout_height="match_parent" /> <Button
android:layout_width="1dp"
android:layout_height="match_parent" />
</TableRow> <TableRow android:layout_weight="1" > <Button
android:layout_width="1dp"
android:layout_height="match_parent" /> <Button
android:layout_width="1dp"
android:layout_height="match_parent" /> <Button
android:layout_width="1dp"
android:layout_height="match_parent" />
</TableRow>
</TableLayout></LinearLayout>