<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" 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"> <LinearLayout android:background="@drawable/shape_bg_radius8" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <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/white" android:textSize="@dimen/textSize16" /> <TextView style="@style/TextView_Wrap_16" android:layout_gravity="center" android:gravity="center" android:text="@string/ceping" android:textSize="@dimen/textSize18" android:textColor="@color/white" /> <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:orientation="vertical"> <!--工具栏--> <include layout="@layout/layout_textandimgshow"/> <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_marginTop="@dimen/size_dp_10" 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:layout_marginLeft="@dimen/size_dp_5" android:layout_marginRight="@dimen/size_dp_5" android:textColor="@color/huodong_blue" android:textSize="@dimen/textSize16" /> <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="match_parent" android:gravity="center" android:orientation="horizontal"> <FrameLayout android:id="@+id/frame_xqjc" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginRight="@dimen/size_dp_5" android:layout_marginTop="@dimen/size_dp_10" android:layout_weight="1" android:background="@drawable/xqjc" > <com.shunzhi.parent.views.TextAndImgShowView android:id="@+id/textAndImg_xqjc" android:visibility="gone" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:src="@drawable/xqjc" /> </FrameLayout> <FrameLayout android:id="@+id/frame_zxxl" android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginLeft="@dimen/size_dp_5" android:layout_marginTop="@dimen/size_dp_10" android:layout_weight="1" android:background="@drawable/zxlx" > <com.shunzhi.parent.views.TextAndImgShowView android:id="@+id/textAndImg_zxlx" android:layout_width="match_parent" android:visibility="gone" android:layout_height="match_parent" android:layout_gravity="center" android:src="@drawable/zxlx" /> </FrameLayout> </LinearLayout> </LinearLayout> <LinearLayout android:layout_marginLeft="@dimen/size_dp_10" android:layout_marginRight="@dimen/size_dp_10" android:layout_marginBottom="@dimen/size_dp_10" android:layout_width="match_parent" android:layout_height="0dp" 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:onClick="onClick" android:background="@drawable/shape_xueqing_radius8"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitXY" android:src="@drawable/activite1" android:id="@+id/ivCourse1" /> <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:id="@+id/tvCourse1" 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_2" android:text="点击参与" android:visibility="gone" 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:onClick="onClick" android:background="@drawable/shape_xueqing_radius8"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitXY" android:background="@drawable/shape_xueqing_radius8" android:src="@drawable/activite2" android:id="@+id/ivCourse2" /> <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:id="@+id/tvCourse2" 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_2" android:text="点击参与" android:visibility="gone" 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:onClick="onClick" android:background="@drawable/shape_xueqing_radius8"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitXY" android:background="@drawable/shape_xueqing_radius8" android:src="@drawable/activite3" android:id="@+id/ivCourse3" /> <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:id="@+id/tvCourse3" 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_2" android:text="点击参与" android:visibility="gone" android:textColor="@color/white" android:textSize="@dimen/textSize14" /> </LinearLayout> </FrameLayout> </LinearLayout> </LinearLayout> </LinearLayout> <android.support.design.widget.FloatingActionButton android:id="@+id/floatingActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:layout_marginBottom="@dimen/size_dp_30" android:layout_marginRight="@dimen/size_dp_30" android:scaleType="center" app:backgroundTint="@color/bg_gray_pressed" app:rippleColor="@color/xueqing_blue" app:fabSize="normal" app:borderWidth="@dimen/size_dp_2" app:elevation="@dimen/size_dp_10" android:src="@drawable/guanlianchild" /> </FrameLayout>