|
|
@@ -0,0 +1,360 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:background="@color/white"
|
|
|
+ tools:context="com.sheep.gamegroup.view.activity.NewYearActMyMoney">
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/shape_gradient_main"
|
|
|
+ android:paddingTop="@dimen/status_bar_height">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/img_baseactivity_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="?attr/actionBarSize"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="@dimen/content_padding_20"
|
|
|
+ android:paddingEnd="@dimen/content_padding_20"
|
|
|
+ android:scaleType="centerInside"
|
|
|
+ android:src="@drawable/narrow_back_white"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_baseactivity_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="?attr/actionBarSize"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/app_name"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/text_size_4"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/img_baseactivity_title"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/img_baseactivity_title" />
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+
|
|
|
+ <com.scwang.smartrefresh.layout.SmartRefreshLayout
|
|
|
+ android:id="@+id/refresh"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
+ android:id="@+id/scrollView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="fill_vertical"
|
|
|
+ android:fillViewport="true"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:focusable="true"
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/act_my_money_bg_iv"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@mipmap/new_year_home_blue_bg_hb"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/act_my_money_top_v"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <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="#333333"
|
|
|
+ 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="#333333"
|
|
|
+ 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="22dp"
|
|
|
+ android:text="@string/total_money_lable"
|
|
|
+ android:textColor="#DCF3FD"
|
|
|
+ android:textSize="15sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/my_money_withdraw_tv"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/my_money_recharge_tv" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ 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_total_money"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ 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="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" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ 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/total_money"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/my_money_dingxiang_amount_iv"
|
|
|
+ android:layout_width="19dp"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:paddingStart="2dp"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingEnd="2dp"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
+ android:src="@mipmap/question_mark" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/my_money_recharge_amount"
|
|
|
+ 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" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/my_money_ll"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="2dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/my_money_amount_ll">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/agent_extract"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <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_dingxiang_tag"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/dingxiang_amount"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <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>
|
|
|
+ </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_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableTop="@mipmap/ic_coupons"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="onClickCoupons"
|
|
|
+ android:text="优惠购物"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableTop="@mipmap/ic_vip"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="onClickVip"
|
|
|
+ android:text="VIP"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableTop="@mipmap/ic_game_recharge"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="onClickGameRecharge"
|
|
|
+ android:text="游戏直充"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:drawableTop="@mipmap/ic_long_mao"
|
|
|
+ android:drawablePadding="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="onClickLongMao"
|
|
|
+ android:text="龙猫电竞"
|
|
|
+ android:textColor="#ff333333"
|
|
|
+ android:textSize="12sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <android.support.design.widget.TabLayout
|
|
|
+ android:id="@+id/indicator"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:layout_marginTop="@dimen/content_padding_20"
|
|
|
+ android:background="#F5F5F5"
|
|
|
+ app:tabGravity="center"
|
|
|
+ app:tabIndicatorColor="#4bc1fe"
|
|
|
+ app:tabIndicatorHeight="0dp"
|
|
|
+ app:tabMode="fixed"
|
|
|
+ app:tabSelectedTextColor="@android:color/white"
|
|
|
+ app:tabTextAppearance="@android:style/TextAppearance.Holo.Medium"
|
|
|
+ app:tabTextColor="#444444" />
|
|
|
+
|
|
|
+ <com.kfzs.android.view.widget.WrapContentHeightViewPager
|
|
|
+ android:id="@+id/pager"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dip"
|
|
|
+ android:layout_weight="1" />
|
|
|
+ </LinearLayout>
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
+ </com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|