Silicon Valley Mall version 2 5-personal center module, Silicon Valley Mall version 2 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 = "My orders" android: textColor = "# 5d5d5d"/> <TextView android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: feature = "true" android: drawableRight = "@ drawable/home_arrow_right" android: text = "view all orders" 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 = "to be paid" 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 = "coming soon" 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 = "coming soon" 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 = "completed" 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 = "after-sales/refund" android: textColor = "# 5d5d5d"/> </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 = "shipping address"/> <TextView style = "@ style/TextStyle" android: drawableLeft = "@ drawable/user_channel_icon_collect" android: text = "My favorites"/> <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 = "my e-tickets"/> <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 = "invite to share"/> <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 = "Customer Service Center"/> <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 = "service feedback"/> <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 = "personal Center" android: textColor = "#0000" android: textSize = "20sp"/> </RelativeLayout>
1. The title header uses GradationTitleBar to implement the gradient effect of the title bar of the imitation QQ space;