fragment_ce_ping.xml 12 KB
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/bgColor"
    android:orientation="vertical"
    tools:context="com.shunzhi.parent.ui.fragment.CePingFragment">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="?android:actionBarSize"
        android:background="@color/titleColor">

        <TextView
            android:id="@+id/tvLocalAddress"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:drawablePadding="@dimen/size_dp_5"
            android:drawableRight="@drawable/pull"
            android:gravity="center"
            android:paddingLeft="@dimen/size_dp_15"
            android:text="杭州"
            android:textColor="@color/textColor"
            android:textSize="@dimen/textSize16" />

        <TextView
            style="@style/TextView_Wrap_16"
            android:layout_gravity="center"
            android:gravity="center"
            android:text="@string/ceping"
            android:textColor="@color/textColor" />


        <ImageView
            android:id="@+id/ivCamera"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="right"
            android:paddingLeft="@dimen/size_dp_15"
            android:paddingRight="@dimen/size_dp_15"
            android:src="@drawable/camera" />

    </FrameLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_margin="@dimen/size_dp_10"
        android:layout_weight="3"
        android:background="@drawable/shape_bg_radius8"
        android:orientation="vertical">


        <!--工具栏-->
        <LinearLayout
            android:layout_marginTop="@dimen/size_dp_5"
            android:layout_marginBottom="@dimen/size_dp_5"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:padding="@dimen/size_dp_10">

            <com.shunzhi.parent.views.TextAndImgShowView
                android:id="@+id/textAndImg1"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:background="?android:selectableItemBackground">

            </com.shunzhi.parent.views.TextAndImgShowView>

            <com.shunzhi.parent.views.TextAndImgShowView
                android:id="@+id/textAndImg2"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1">

            </com.shunzhi.parent.views.TextAndImgShowView>

            <com.shunzhi.parent.views.TextAndImgShowView
                android:id="@+id/textAndImg3"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1">

            </com.shunzhi.parent.views.TextAndImgShowView>

            <com.shunzhi.parent.views.TextAndImgShowView
                android:id="@+id/textAndImg4"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1">

            </com.shunzhi.parent.views.TextAndImgShowView>

        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:layout_marginLeft="@dimen/size_dp_5"
            android:layout_marginRight="@dimen/size_dp_5"
            android:background="@color/bg_gray" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="horizontal">

            <FrameLayout
                android:id="@+id/frame_xqjc"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:layout_marginBottom="@dimen/size_dp_20"
                android:layout_marginRight="@dimen/size_dp_10"
                android:layout_marginLeft="@dimen/textSize20"
                android:layout_marginTop="@dimen/size_dp_20"
                android:background="@drawable/shape_xueqing_radius8"
                android:padding="@dimen/size_dp_20">

                <com.shunzhi.parent.views.TextAndImgShowView
                    android:id="@+id/textAndImg_xqjc"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:src="@drawable/xqjc" />

            </FrameLayout>

            <FrameLayout
                android:id="@+id/frame_zxxl"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="match_parent"
                android:layout_marginBottom="@dimen/size_dp_20"
                android:layout_marginLeft="@dimen/size_dp_10"
                android:layout_marginTop="@dimen/size_dp_20"
                android:background="@drawable/shape_zxlx_radius8"
                android:layout_marginRight="@dimen/textSize20"
                android:padding="@dimen/size_dp_20">

                <com.shunzhi.parent.views.TextAndImgShowView
                    android:id="@+id/textAndImg_zxlx"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:src="@drawable/zxlx" />

            </FrameLayout>

        </LinearLayout>

    </LinearLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/size_dp_10"
        android:layout_marginRight="@dimen/size_dp_10"
        android:gravity="center_vertical">

        <View
            android:layout_width="0dp"
            android:layout_height="1dp"
            android:layout_weight="1"
            android:background="@color/huodong_blue"></View>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="活动专栏"
            android:textColor="@color/huodong_blue"
            android:textSize="@dimen/textSize18"

            />

        <View
            android:layout_width="0dp"
            android:layout_height="1dp"
            android:layout_weight="1"
            android:background="@color/huodong_blue"></View>

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_margin="@dimen/size_dp_10"
        android:layout_weight="2">

        <FrameLayout
            android:id="@+id/frame_hot1"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_marginRight="@dimen/size_dp_5"
            android:layout_weight="1"
            android:background="@drawable/shape_xueqing_radius8">

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom|left"
                android:layout_marginBottom="@dimen/size_dp_5"
                android:layout_marginLeft="@dimen/size_dp_5"
                android:orientation="vertical">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="热门课程"
                    android:textColor="@color/white"
                    android:textSize="@dimen/textSize16" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/size_dp_5"
                    android:background="@drawable/shape_stroke_radius4_white"
                    android:padding="@dimen/size_dp_5"
                    android:text="点击参与"
                    android:textColor="@color/white"
                    android:textSize="@dimen/textSize14" />

            </LinearLayout>

        </FrameLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_marginLeft="@dimen/size_dp_5"
            android:layout_weight="1"
            android:orientation="vertical">

            <FrameLayout
                android:id="@+id/frame_hot2"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_marginBottom="@dimen/size_dp_5"
                android:layout_marginRight="@dimen/size_dp_5"
                android:layout_weight="1"
                android:background="@drawable/shape_xueqing_radius8">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|left"
                    android:layout_marginBottom="@dimen/size_dp_5"
                    android:layout_marginLeft="@dimen/size_dp_5"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="热门课程"
                        android:textColor="@color/white"
                        android:textSize="@dimen/textSize16" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/size_dp_5"
                        android:background="@drawable/shape_stroke_radius4_white"
                        android:padding="@dimen/size_dp_5"
                        android:text="点击参与"
                        android:textColor="@color/white"
                        android:textSize="@dimen/textSize14" />

                </LinearLayout>

            </FrameLayout>

            <FrameLayout
                android:id="@+id/frame_hot3"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_marginRight="@dimen/size_dp_5"
                android:layout_marginTop="@dimen/size_dp_5"
                android:layout_weight="1"
                android:background="@drawable/shape_xueqing_radius8">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="bottom|left"
                    android:layout_marginBottom="@dimen/size_dp_5"
                    android:layout_marginLeft="@dimen/size_dp_5"
                    android:orientation="vertical">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="热门课程"
                        android:textColor="@color/white"
                        android:textSize="@dimen/textSize16" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="@dimen/size_dp_5"
                        android:background="@drawable/shape_stroke_radius4_white"
                        android:padding="@dimen/size_dp_5"
                        android:text="点击参与"
                        android:textColor="@color/white"
                        android:textSize="@dimen/textSize14" />

                </LinearLayout>

            </FrameLayout>

        </LinearLayout>
    </LinearLayout>
</LinearLayout>