矽谷商城第二版5--個人中心模組,矽谷商城第二版5--

來源:互聯網
上載者:User

矽谷商城第二版5--個人中心模組,矽谷商城第二版5--

  

fragment_user.xml

<RelativeLayout 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">    <com.hankkin.gradationscroll.GradationScrollView        android:id="@+id/sv_person"        android:layout_width="match_parent"        android:layout_height="wrap_content">        <LinearLayout            android:layout_width="match_parent"            android:layout_height="match_parent"            android:orientation="vertical">            <RelativeLayout                android:id="@+id/rl_person_header"                android:layout_width="wrap_content"                android:layout_height="170dp"                android:background="#f00">                <ImageView                    android:layout_width="wrap_content"                    android:layout_height="170dp"                    android:background="@drawable/new_user_icon_background" />                <ImageButton                    android:id="@+id/ib_user_avator"                    android:layout_width="50dp"                    android:layout_height="50dp"                    android:layout_centerInParent="true"                    android:background="@drawable/new_user_icon" />            </RelativeLayout>            <View                android:layout_width="match_parent"                android:layout_height="8dp"                android:background="#eee" />            <RelativeLayout                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:padding="10dp">                <TextView                    android:layout_width="wrap_content"                    android:layout_height="wrap_content"                    android:text="我的訂單"                    android:textColor="#5d5d5d" />                <TextView                    android:layout_width="wrap_content"                    android:layout_height="wrap_content"                    android:layout_alignParentRight="true"                    android:drawableRight="@drawable/home_arrow_right"                    android:text="查看全部訂單"                    android:textColor="#5d5d5d" />            </RelativeLayout>            <View                android:layout_width="match_parent"                android:layout_height="1dp"                android:background="#eee" />            <LinearLayout                android:layout_width="match_parent"                android:layout_height="wrap_content"                android:padding="10dp">                <LinearLayout                    android:layout_width="0dp"                    android:layout_height="wrap_content"                    android:layout_weight="1"                    android:gravity="center"                    android:orientation="vertical">                    <ImageView                        android:layout_width="30dp"                        android:layout_height="30dp"                        android:src="@drawable/new_order_status_fukuan" />                    <TextView                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_marginTop="5dp"                        android:text="待付款"                        android:textColor="#5d5d5d" />                </LinearLayout>                <LinearLayout                    android:layout_width="0dp"                    android:layout_height="wrap_content"                    android:layout_weight="1"                    android:gravity="center"                    android:orientation="vertical">                    <ImageView                        android:layout_width="30dp"                        android:layout_height="30dp"                        android:src="@drawable/new_order_status_fahuo" />                    <TextView                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_marginTop="5dp"                        android:text="待發貨"                        android:textColor="#5d5d5d" />                </LinearLayout>                <LinearLayout                    android:layout_width="0dp"                    android:layout_height="wrap_content"                    android:layout_weight="1"                    android:gravity="center"                    android:orientation="vertical">                    <ImageView                        android:layout_width="30dp"                        android:layout_height="30dp"                        android:src="@drawable/new_order_status_shouhuo" />                    <TextView                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_marginTop="5dp"                        android:text="待收穫"                        android:textColor="#5d5d5d" />                </LinearLayout>                <LinearLayout                    android:layout_width="0dp"                    android:layout_height="wrap_content"                    android:layout_weight="1"                    android:gravity="center"                    android:orientation="vertical">                    <ImageView                        android:layout_width="30dp"                        android:layout_height="30dp"                        android:src="@drawable/new_order_status_finish" />                    <TextView                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_marginTop="5dp"                        android:text="已完成"                        android:textColor="#5d5d5d" />                </LinearLayout>                <LinearLayout                    android:layout_width="0dp"                    android:layout_height="wrap_content"                    android:layout_weight="1"                    android:gravity="center"                    android:orientation="vertical">                    <ImageView                        android:layout_width="30dp"                        android:layout_height="30dp"                        android:src="@drawable/new_order_status_help" />                    <TextView                        android:layout_width="wrap_content"                        android:layout_height="wrap_content"                        android:layout_marginTop="5dp"                        android:text="售後/退款"                        android:textColor="#5d5d5d" />                </LinearLayout>            </LinearLayout>            <View                android:layout_width="match_parent"                android:layout_height="8dp"                android:background="#eee" />            <TextView                style="@style/TextStyle"                android:drawableLeft="@drawable/user_channel_icon_address"                android:text="收貨地址" />            <TextView                style="@style/TextStyle"                android:drawableLeft="@drawable/user_channel_icon_collect"                android:text="我的收藏" />            <View                android:layout_width="match_parent"                android:layout_height="1dp"                android:layout_marginLeft="45dp"                android:background="#eee" />            <TextView                style="@style/TextStyle"                android:drawableLeft="@drawable/user_icon_ticket"                android:text="我的電子票" />            <View                android:layout_width="match_parent"                android:layout_height="8dp"                android:background="#eee" />            <TextView                style="@style/TextStyle"                android:drawableLeft="@drawable/user_channel_icon_invitation"                android:text="邀請分享" />            <View                android:layout_width="match_parent"                android:layout_height="1dp"                android:layout_marginLeft="45dp"                android:background="#eee" />            <TextView                style="@style/TextStyle"                android:drawableLeft="@drawable/user_channel_icon_callcenter"                android:text="客服中心" />            <View                android:layout_width="match_parent"                android:layout_height="1dp"                android:layout_marginLeft="45dp"                android:background="#eee" />            <TextView                style="@style/TextStyle"                android:drawableLeft="@drawable/user_channel_icon_feedback"                android:text="服務反饋" />            <View                android:layout_width="match_parent"                android:layout_height="8dp"                android:background="#eee" />        </LinearLayout>    </com.hankkin.gradationscroll.GradationScrollView>    <TextView        android:id="@+id/tv_usercenter"        android:layout_width="match_parent"        android:layout_height="45dp"        android:gravity="center"        android:padding="10dp"        android:text="個人中心"        android:textColor="#0000"        android:textSize="20sp" /></RelativeLayout>

1、標題頭採用GradationTitleBar實現仿QQ空間標題列漸層效果;

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.