美文网首页
GridLayout

GridLayout

作者: 肚子糖 | 来源:发表于2017-02-15 18:55 被阅读0次

    2 行 3 列的 GridLayout,item 将列平分

    <GridLayout
                    android:id="@+id/gridlayout"
                    android:layout_below="@+id/line"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/margin_10"
                    android:columnCount="3"
                    android:rowCount="2">
    
                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_columnWeight="1"
                        android:layout_gravity="fill"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="@dimen/margin_42">
    
                        <TextView
                            style="@style/txt_titleStyle_12"
                            android:drawablePadding="@dimen/margin_18"
                            android:drawableTop="@mipmap/icon_share_wb"
                            android:text="官方精选机会"
                            android:textColor="#3D464C" />
    
                        <TextView
                            style="@style/txt_titleStyle_10"
                            android:layout_alignParentBottom="true"
                            android:layout_marginTop="@dimen/margin_2"
                            android:text="获得首页展示机会"
                            android:textColor="#8899A6" />
                    </LinearLayout>
    
                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_columnWeight="1"
                        android:layout_gravity="fill"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="@dimen/margin_42">
    
                        <TextView
                            style="@style/txt_titleStyle_12"
                            android:drawablePadding="@dimen/margin_18"
                            android:drawableTop="@mipmap/icon_share_wb"
                            android:text="无限次免费约拍"
                            android:textColor="#3D464C" />
    
                        <TextView
                            style="@style/txt_titleStyle_10"
                            android:layout_marginTop="@dimen/margin_2"
                            android:text="免费约拍不限定次数"
                            android:textColor="#8899A6" />
                    </LinearLayout>
    
                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_columnWeight="1"
                        android:layout_gravity="fill"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="@dimen/margin_42">
    
                        <TextView
                            style="@style/txt_titleStyle_12"
                            android:drawablePadding="@dimen/margin_18"
                            android:drawableTop="@mipmap/icon_share_wb"
                            android:text="影棚购买折扣"
                            android:textColor="#3D464C" />
    
                        <TextView
                            style="@style/txt_titleStyle_10"
                            android:layout_marginTop="@dimen/margin_2"
                            android:text="场地租赁购买折扣"
                            android:textColor="#8899A6" />
                    </LinearLayout>
    
                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_columnWeight="1"
                        android:layout_gravity="fill"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="@dimen/margin_42">
    
                        <TextView
                            style="@style/txt_titleStyle_12"
                            android:drawablePadding="@dimen/margin_18"
                            android:drawableTop="@mipmap/icon_share_wb"
                            android:text="活动优先参与"
                            android:textColor="#3D464C" />
    
                        <TextView
                            style="@style/txt_titleStyle_10"
                            android:layout_marginTop="@dimen/margin_2"
                            android:text="官方活动优先参与"
                            android:textColor="#8899A6" />
                    </LinearLayout>
    
                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_columnWeight="1"
                        android:layout_gravity="fill"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="@dimen/margin_42">
    
                        <TextView
                            style="@style/txt_titleStyle_12"
                            android:drawablePadding="@dimen/margin_18"
                            android:drawableTop="@mipmap/icon_share_wb"
                            android:text="特别VIP标识"
                            android:textColor="#3D464C" />
    
                        <TextView
                            style="@style/txt_titleStyle_10"
                            android:layout_marginTop="@dimen/margin_2"
                            android:text="VIP铭牌"
                            android:textColor="#8899A6" />
                    </LinearLayout>
    
                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_columnWeight="1"
                        android:layout_gravity="fill"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="@dimen/margin_42">
    
                        <TextView
                            style="@style/txt_titleStyle_12"
                            android:drawablePadding="@dimen/margin_18"
                            android:drawableTop="@mipmap/icon_share_wb"
                            android:text="更多安心认证"
                            android:textColor="#3D464C" />
    
                        <TextView
                            style="@style/txt_titleStyle_10"
                            android:layout_marginTop="@dimen/margin_2"
                            android:text="更详细的专属认证"
                            android:textColor="#8899A6" />
                    </LinearLayout>
                </GridLayout>
    

    相关文章

      网友评论

          本文标题:GridLayout

          本文链接:https://www.haomeiwen.com/subject/eznqwttx.html