layout_discover_headview.xml 10.8 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:fresco="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/linear_addvp"
            android:layout_width="match_parent"
            android:layout_height="157dp"
            android:background="@drawable/default_background"
            android:orientation="vertical"></LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="73dp"
            android:background="@color/white">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"

                android:gravity="center">

                <TextView
                    android:id="@+id/tv_btn_active"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerInParent="true"
                    android:background="?android:attr/selectableItemBackground"
                    android:drawableLeft="@mipmap/find_activite_logo"
                    android:drawablePadding="6dp"
                    android:gravity="center"
                    android:paddingRight="20dp"
                    android:text="@string/find_active"
                    android:textColor="@color/color_3f3f3f"
                    android:textSize="14sp" />
            </RelativeLayout>

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:gravity="center">

                <TextView
                    android:id="@+id/tv_btn_content"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerInParent="true"
                    android:layout_gravity="center"
                    android:background="?android:attr/selectableItemBackground"
                    android:drawableLeft="@mipmap/find_jumu_logo"
                    android:drawablePadding="6dp"
                    android:gravity="center"
                    android:paddingRight="20dp"
                    android:text="@string/find_content"
                    android:textColor="@color/color_3f3f3f"
                    android:textSize="14sp" />
            </RelativeLayout>
        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="5dp"
            android:background="@color/color_f3f3f3" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="153dp"
            android:background="@color/white"
            android:orientation="vertical"
            android:paddingTop="9dp">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="10dp"
                android:text="@string/find_edit_recommend"
                android:textColor="@color/color_999"
                android:textSize="13sp" />

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

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center"
                    android:orientation="vertical">

                    <com.facebook.drawee.view.SimpleDraweeView
                        android:id="@+id/ima_head1"
                        android:layout_width="60dp"
                        android:layout_height="60dp"
                        fresco:actualImageScaleType="fitCenter"
                        fresco:roundAsCircle="true"
                        android:src="@mipmap/login_no"/>

                   <!-- <ImageView
                        android:id="@+id/ima_head1"
                        android:layout_width="86dp"
                        android:layout_height="86dp"
                        android:src="@drawable/defult_background_small" />-->

                    <TextView
                        android:id="@+id/tv_name1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="13dp"
                        android:ellipsize="end"
                        android:maxEms="6"
                        android:singleLine="true"
                        android:text=""
                        android:textColor="@color/color_333"
                        android:textSize="11sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center"
                    android:orientation="vertical">

                    <com.facebook.drawee.view.SimpleDraweeView
                        android:id="@+id/ima_head2"
                        android:layout_width="60dp"
                        android:layout_height="60dp"
                        fresco:actualImageScaleType="fitCenter"
                        fresco:roundAsCircle="true"
                        android:src="@mipmap/login_no"/>

                    <!--<ImageView
                        android:id="@+id/ima_head2"
                        android:layout_width="86dp"
                        android:layout_height="86dp"
                        android:src="@drawable/defult_background_small" />-->

                    <TextView
                        android:id="@+id/tv_name2"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="13dp"
                        android:ellipsize="end"
                        android:maxEms="6"
                        android:singleLine="true"
                        android:text=""
                        android:textColor="@color/color_333"
                        android:textSize="11sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center"
                    android:orientation="vertical">

                    <com.facebook.drawee.view.SimpleDraweeView
                        android:id="@+id/ima_head3"
                        android:layout_width="60dp"
                        android:layout_height="60dp"
                        fresco:actualImageScaleType="fitCenter"
                        fresco:roundAsCircle="true"
                        android:src="@mipmap/login_no"/>

                    <!--<ImageView
                        android:id="@+id/ima_head3"
                        android:layout_width="86dp"
                        android:layout_height="86dp"
                        android:src="@drawable/defult_background_small" />-->

                    <TextView
                        android:id="@+id/tv_name3"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="13dp"
                        android:ellipsize="end"
                        android:maxEms="6"
                        android:singleLine="true"
                        android:text=""
                        android:textColor="@color/color_333"
                        android:textSize="11sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:gravity="center"
                    android:orientation="vertical">

                    <com.facebook.drawee.view.SimpleDraweeView
                        android:id="@+id/ima_head4"
                        android:layout_width="60dp"
                        android:layout_height="60dp"
                        fresco:actualImageScaleType="fitCenter"
                        fresco:roundAsCircle="true"
                        android:src="@mipmap/login_no"/>

                   <!-- <ImageView
                        android:id="@+id/ima_head4"
                        android:layout_width="86dp"
                        android:layout_height="86dp"
                        android:src="@drawable/defult_background_small" />-->

                    <TextView
                        android:id="@+id/tv_name4"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="13dp"
                        android:ellipsize="end"
                        android:maxEms="6"
                        android:singleLine="true"
                        android:text=""
                        android:textColor="@color/color_333"
                        android:textSize="11sp" />
                </LinearLayout>
            </LinearLayout>


        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="5dp"
            android:background="@color/color_f3f3f3" />

       <!-- <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@color/color_efefef" />-->

        <TextView
            android:layout_width="match_parent"
            android:layout_height="53dp"
            android:background="@color/white"
            android:gravity="left|center_vertical"
            android:paddingLeft="10dp"
            android:text="@string/find_new_content"
            android:textColor="@color/color_999"
            android:textSize="13sp" />
    </LinearLayout>


</LinearLayout>