|
|
@@ -2,12 +2,15 @@
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ tools:context="com.sheep.gamegroup.view.activity.ActMyMoney">
|
|
|
|
|
|
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
|
|
android:id="@+id/refresh"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="@dimen/status_bar_height">
|
|
|
|
|
|
<android.support.v4.widget.NestedScrollView
|
|
|
android:id="@+id/scrollView"
|
|
|
@@ -28,67 +31,138 @@
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@mipmap/home_blue_bg"
|
|
|
- android:paddingTop="@dimen/status_bar_height"
|
|
|
- android:paddingBottom="52dp">
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@mipmap/home_blue_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
<View
|
|
|
android:id="@+id/act_my_money_top_v"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="?attr/actionBarSize" />
|
|
|
+ android:layout_height="?attr/actionBarSize"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:background="@color/white_light" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/my_money_recharge_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:background="@drawable/shape_white_solid_rectangle_left"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="14dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:text="充值 >"
|
|
|
+ android:textColor="#2BCEFA"
|
|
|
+ android:textSize="15sp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/act_my_money_top_v" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/my_money_withdraw_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:layout_marginTop="13dp"
|
|
|
+ android:background="@drawable/shape_white_solid_rectangle_left"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="14dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:text="提现 >"
|
|
|
+ android:textColor="#2BCEFA"
|
|
|
+ android:textSize="15sp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/my_money_recharge_tv" />
|
|
|
|
|
|
<TextView
|
|
|
+ android:id="@+id/my_money_total_money_lable"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/content_padding_20"
|
|
|
- android:layout_marginTop="@dimen/content_padding_10"
|
|
|
+ android:layout_marginStart="22dp"
|
|
|
android:text="@string/total_money_lable"
|
|
|
- android:textColor="@color/white"
|
|
|
+ android:textColor="#DCF3FD"
|
|
|
android:textSize="15sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/my_money_withdraw_tv"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/act_my_money_top_v" />
|
|
|
+ app:layout_constraintTop_toTopOf="@id/my_money_recharge_tv" />
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:id="@+id/my_money_ll"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="@dimen/content_padding_20"
|
|
|
android:orientation="vertical"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/act_my_money_top_v">
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/my_money_withdraw_tv"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/my_money_total_money_lable"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/my_money_recharge_tv">
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/my_money_agent_extract"
|
|
|
+ android:id="@+id/my_money_total_money"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="12dp"
|
|
|
- android:text="@string/agent_extract"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:text="@string/total_money"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="25sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/my_money_available_amount"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="9dp"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
+ android:background="@drawable/shape_2b0a4c60_solid_rectangle_10"
|
|
|
+ android:paddingStart="6dp"
|
|
|
+ android:paddingTop="3dp"
|
|
|
+ android:paddingEnd="6dp"
|
|
|
+ android:paddingBottom="3dp"
|
|
|
+ android:text="@string/available_amount"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/my_money_amount_ll"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="18dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/my_money_withdraw_tv">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/my_money_agent_extract"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/total_money"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/my_money_task_reward"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/content_padding_20"
|
|
|
- android:text="@string/task_reward"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/total_money"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingTop="10dp"
|
|
|
- android:paddingBottom="10dp">
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/my_money_dingxiang_amount"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/dingxiang_amount"
|
|
|
+ android:text="@string/total_money"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
@@ -102,120 +176,121 @@
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/my_money_recharge_amount"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/recharge_amount"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/total_money"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/my_money_available_amount"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/content_padding_20"
|
|
|
- android:text="@string/available_amount"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="12sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/my_money_ll"
|
|
|
- app:layout_constraintStart_toStartOf="parent" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/my_money_total_money"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/content_padding_20"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_10"
|
|
|
- android:text="@string/total_money"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="25sp"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/my_money_available_amount"
|
|
|
- app:layout_constraintStart_toStartOf="parent" />
|
|
|
-
|
|
|
- </android.support.constraint.ConstraintLayout>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/content_padding_10"
|
|
|
- android:layout_marginTop="-37dp"
|
|
|
- android:layout_marginEnd="@dimen/content_padding_10"
|
|
|
- android:background="@drawable/x_shap_shadow_bg_rectgangle_white"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
<LinearLayout
|
|
|
+ android:id="@+id/my_money_ll"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center_vertical"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
android:orientation="horizontal"
|
|
|
- android:paddingStart="@dimen/content_padding_20"
|
|
|
- android:paddingTop="@dimen/content_padding_10"
|
|
|
- android:paddingEnd="@dimen/content_padding_20"
|
|
|
- android:paddingBottom="@dimen/content_padding_10">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:layout_width="20dp"
|
|
|
- android:layout_height="20dp"
|
|
|
- android:src="@drawable/selector_tab_my_money1" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/my_money_amount_ll">
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/my_money_recharge_tv"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/content_padding_10"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="充值"
|
|
|
- android:textColor="@color/gray_4"
|
|
|
- android:textSize="15sp" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:layout_width="15dp"
|
|
|
- android:layout_height="15dp"
|
|
|
- android:src="@mipmap/x_ic_next" />
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1px"
|
|
|
- android:layout_marginLeft="@dimen/content_padding_20"
|
|
|
- android:layout_marginRight="@dimen/content_padding_20"
|
|
|
- android:background="@color/white_bg_line" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingStart="@dimen/content_padding_20"
|
|
|
- android:paddingTop="@dimen/content_padding_10"
|
|
|
- android:paddingEnd="@dimen/content_padding_20"
|
|
|
- android:paddingBottom="@dimen/content_padding_10">
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/agent_extract"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="20dp"
|
|
|
- android:layout_height="20dp"
|
|
|
- android:src="@drawable/selector_tab_my_money2" />
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/task_reward"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/my_money_withdraw_tv"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/content_padding_10"
|
|
|
android:layout_weight="1"
|
|
|
- android:text="提现"
|
|
|
- android:textColor="@color/gray_4"
|
|
|
- android:textSize="15sp" />
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/dingxiang_amount"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="15dp"
|
|
|
- android:layout_height="15dp"
|
|
|
- android:src="@mipmap/x_ic_next" />
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/recharge_amount"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
- </LinearLayout>
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginTop="7dp"
|
|
|
+ android:text="绵羊币消费场景"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:textSize="14sp" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableTop="@mipmap/ic_coupons"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:onClick="onClickCoupons"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:text="优惠购物"/>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableTop="@mipmap/ic_vip"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:onClick="onClickVip"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:text="VIP"/>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableTop="@mipmap/ic_game_recharge"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:onClick="onClickGameRecharge"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:text="游戏直充"/>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableTop="@mipmap/ic_long_mao"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:onClick="onClickLongMao"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:text="龙猫电竞"/>
|
|
|
+ </LinearLayout>
|
|
|
<android.support.design.widget.TabLayout
|
|
|
android:id="@+id/indicator"
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -245,8 +320,8 @@
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:paddingTop="@dimen/status_bar_height"
|
|
|
- android:background="@drawable/shape_gradient_main">
|
|
|
+ android:background="@drawable/shape_gradient_main"
|
|
|
+ android:paddingTop="@dimen/status_bar_height">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/img_baseactivity_title"
|