对齐问题 会了,加个android:gravity="center"即可 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 也借此问个别的问题吧,对于不同的页面(页面之间跳转),大家一般是定义在一个activity里还是定义不同的activity啊? 页面跳转可以考虑换View而不换Activity。当然,看情况了。 不知道这是不是你想要的效果,因为你发的消息里并没有写全代码。我也理解不大上来。<?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="wrap_content"> <TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#ffbbcc" android:stretchColumns="*"> <TableRow> <ImageView android:src="@drawable/icon" android:id="@+id/game01"> </ImageView> <ImageView android:src="@drawable/icon" android:id="@+id/game02"> </ImageView> <ImageView android:src="@drawable/icon" android:id="@+id/game03"> </ImageView> </TableRow> <TableRow> <TextView android:id="@+id/text01" android:textColor="#000000" android:text="游戏" android:layout_below="@id/game01" android:layout_alignLeft="@id/game01" android:gravity="center" /> <TextView android:id="@+id/text02" android:textColor="#000000" android:text="游戏" android:layout_below="@id/game01" android:layout_toRightOf="@id/text01" android:gravity="center" /> <TextView android:textColor="#000000" android:text="游戏" android:layout_below="@id/game01" android:layout_toRightOf="@id/text02" android:gravity="center" /> </TableRow> </TableLayout></RelativeLayout>效果: 问下各位,为什么我的AlertDialog.Builder没有dismiss和cancel 怎样编写程序调用手机和电脑上的扬声器??? FileObserver可以监视文件操作,但是如何获得操作者的信息? android progressDialog 不动 android大家工资如何?? android1.6和2.1 获取联系人邮件地址和通信地址方法 Preference问题 背景透明 android dialogfragment显示位置 点击通知栏无法启动activity 菜单问题 请问如何设置AlertDialog的样式?
页面跳转可以考虑换View而不换Activity。当然,看情况了。
<?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="wrap_content">
<TableLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="#ffbbcc"
android:stretchColumns="*">
<TableRow>
<ImageView android:src="@drawable/icon" android:id="@+id/game01">
</ImageView>
<ImageView android:src="@drawable/icon" android:id="@+id/game02">
</ImageView>
<ImageView android:src="@drawable/icon" android:id="@+id/game03">
</ImageView>
</TableRow>
<TableRow>
<TextView android:id="@+id/text01" android:textColor="#000000"
android:text="游戏" android:layout_below="@id/game01"
android:layout_alignLeft="@id/game01" android:gravity="center" />
<TextView android:id="@+id/text02" android:textColor="#000000"
android:text="游戏" android:layout_below="@id/game01"
android:layout_toRightOf="@id/text01" android:gravity="center" />
<TextView android:textColor="#000000" android:text="游戏"
android:layout_below="@id/game01" android:layout_toRightOf="@id/text02"
android:gravity="center" />
</TableRow>
</TableLayout>
</RelativeLayout>
效果: