fragment_mine.xml 13.7 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/color_bg"
    android:clipToPadding="true"
    android:fitsSystemWindows="true"
    android:orientation="vertical">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none">

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

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="140dp">

                <ImageView
                    android:id="@+id/ima_mineshowbg"
                    android:layout_width="match_parent"
                    android:scaleType="centerCrop"
                    android:background="@color/color_666"
                    android:layout_height="140dp" />

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="140dp"
                    android:background="@mipmap/vague_shade" />

                <RelativeLayout
                    android:id="@+id/relative_mine_background"
                    android:layout_width="match_parent"
                    android:layout_height="140dp"
                    >

                    <ImageView
                        android:id="@+id/head_bg"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:scaleType="centerCrop"/>

                    <ImageView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:background="#19000000"/>

                    <ImageView
                        android:id="@+id/ima_mine_head"
                        android:layout_width="62dp"
                        android:layout_height="62dp"
                        android:layout_centerVertical="true"
                        android:layout_marginLeft="10dp"
                        android:background="@mipmap/login_no" />

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:layout_toRightOf="@id/ima_mine_head"
                        android:orientation="vertical">

                        <TextView
                            android:id="@+id/tc_mine_name"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="12dp"
                            android:text="请登录"
                            android:textColor="@color/white" />

                        <ImageView
                            android:id="@+id/tv_mine_vip"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_centerVertical="true"
                            android:layout_marginLeft="10dp"
                            android:layout_marginTop="5dp"
                            android:background="@mipmap/mine_normal_vip"
                            android:visibility="gone" />

                    </LinearLayout>


                    <ImageView
                        android:id="@+id/ima_mine_more"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentRight="true"
                        android:layout_centerVertical="true"
                        android:layout_marginRight="7dp"
                        android:background="@mipmap/arror_white_right" />
                </RelativeLayout>
            </FrameLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="84dp"
                android:gravity="center_vertical"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/tv_button_ticket"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:drawablePadding="16dp"
                    android:drawableTop="@mipmap/mine_ticket_logo"
                    android:gravity="center"
                    android:text="@string/mine_ticket"
                    android:textColor="@color/color_666"
                    android:textSize="11sp" />

                <TextView
                    android:id="@+id/tv_button_wallet"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:drawablePadding="16dp"
                    android:drawableTop="@mipmap/mine_wallet_logo"
                    android:gravity="center"
                    android:text="@string/mine_wallet"
                    android:textColor="@color/color_666"
                    android:textSize="11sp" />


                <TextView
                    android:id="@+id/tv_button_msg"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="?android:attr/selectableItemBackground"
                    android:drawablePadding="13dp"
                    android:drawableTop="@mipmap/mine_msg_logo"
                    android:gravity="center"
                    android:text="@string/mine_msg"
                    android:textColor="@color/color_666"
                    android:textSize="11sp" />
            </LinearLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="10dp"
                android:background="@color/color_f0f0f8" />


            <TextView
                android:id="@+id/tv_button_coupon"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="?android:attr/selectableItemBackground"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_coupon"
                android:textColor="@color/color_333"
                android:textSize="14sp" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed" />

            <TextView
                android:id="@+id/tv_button_mineplayer"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_player"
                android:textColor="@color/color_333"
                android:textSize="14sp"
                android:visibility="gone" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed"
                android:visibility="gone" />

            <TextView
                android:id="@+id/tv_button_minehistory"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="?android:attr/selectableItemBackground"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_history"
                android:textColor="@color/color_333"
                android:textSize="14sp" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed" />

            <TextView
                android:id="@+id/tv_button_minecollect"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="?android:attr/selectableItemBackground"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_collect"
                android:textColor="@color/color_333"
                android:textSize="14sp" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed" />

            <TextView
                android:id="@+id/tv_button_minetp"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_tp"
                android:textColor="@color/color_333"
                android:textSize="14sp"
                android:visibility="gone" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed"
                android:visibility="gone" />

            <TextView
                android:id="@+id/tv_button_minehelp"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="?android:attr/selectableItemBackground"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_help"
                android:textColor="@color/color_333"
                android:textSize="14sp" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed"
                android:visibility="gone" />

            <TextView
                android:id="@+id/tv_button_minekf"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_kf"
                android:textColor="@color/color_333"
                android:textSize="14sp"
                android:visibility="gone" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed" />

            <TextView
                android:id="@+id/tv_button_minequestion"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_question"
                android:textColor="@color/color_333"
                android:textSize="14sp"
                android:visibility="gone" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed"
                android:visibility="gone" />

            <TextView
                android:id="@+id/tv_button_minesetting"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="?android:attr/selectableItemBackground"
                android:drawableRight="@mipmap/guidance_right_arrow"
                android:gravity="center_vertical"
                android:paddingLeft="10dp"
                android:paddingRight="17dp"
                android:text="@string/mine_setting"
                android:textColor="@color/color_333"
                android:textSize="14sp" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:background="@color/color_ededed" />
        </LinearLayout>
    </ScrollView>

</LinearLayout>