android布局高手帮我看一下这个效果怎么布局 本帖最后由 qiuqingpo 于 2013-10-11 13:55:17 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 最下面的那个4个图片吗下面这个差不多能达到你的效果 <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click1" android:src="@drawable/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click2" android:text="11" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click1" android:src="@drawable/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click2" android:text="11" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click1" android:src="@drawable/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click2" android:text="11" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click1" android:src="@drawable/ic_launcher" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="click2" android:text="11" /> </LinearLayout> LinearLayout和4个TextView就够了TextView也可以显示image的,用android:drawableLeft这个属性,在text的左边显示一个image。 哦,那就四个TextView就行了.四个均分 要是用RelativeLayout布局合适吗? 可以肯定可以,但是这个布局我觉得用均分的好点....就是那个layout_weightrelativelayout没这个属性 eclipse中开发android应用程序 有没直接调处剪贴板的代码额 我想学习android,但是又对他的前景担忧,请教各位行内人士 谁帮我看看这样算不算SDK Manager下载了 求android连接sqlserver 数据库实例代码 Android 自带Camera源码导入有问题 关于webview中的js,求解。。 如何查看android的Bluetooth所有可用的profile 黄色三角形怎么回? 小白求助 小伙伴们求解,打开通知,进入详情页,然后返回到主页,退出程序。按HOME键打开程序,为毛还是进入的详情页? setBackgroundResource导致界面消失的问题
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal" > <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click1"
android:src="@drawable/ic_launcher" /> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click2"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal" > <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click1"
android:src="@drawable/ic_launcher" /> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click2"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal" > <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click1"
android:src="@drawable/ic_launcher" /> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click2"
android:text="11" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="horizontal" > <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click1"
android:src="@drawable/ic_launcher" /> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="click2"
android:text="11" />
</LinearLayout>
TextView也可以显示image的,用android:drawableLeft这个属性,在text的左边显示一个image。
relativelayout没这个属性