当前位置: 代码迷 >> Android >> android布局高手帮小弟我看一下这个效果如何布局
  详细解决方案

android布局高手帮小弟我看一下这个效果如何布局

热度:53   发布时间:2016-04-28 07:44:23.0
android布局高手帮我看一下这个效果怎么布局
本帖最后由 qiuqingpo 于 2013-10-11 13:55:17 编辑
直接上图片,下面的四个图片的布局

------解决方案--------------------
最下面的那个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" >
  相关解决方案