提现成功 实现
This commit is contained in:
parent
df332187d6
commit
de9f003d26
|
|
@ -5,7 +5,6 @@ import android.content.Context
|
||||||
import com.ama.core.architecture.util.setOnClickBatch
|
import com.ama.core.architecture.util.setOnClickBatch
|
||||||
import com.ama.core.architecture.widget.BindingDialog
|
import com.ama.core.architecture.widget.BindingDialog
|
||||||
import com.gamedog.vididin.databinding.DialogWithdrawSuccessBinding as ViewBinding
|
import com.gamedog.vididin.databinding.DialogWithdrawSuccessBinding as ViewBinding
|
||||||
import com.gamedog.vididin.router.Router
|
|
||||||
|
|
||||||
|
|
||||||
class WithdrawSuccessDialog(context: Context) : BindingDialog<ViewBinding>(context, ViewBinding::inflate) {
|
class WithdrawSuccessDialog(context: Context) : BindingDialog<ViewBinding>(context, ViewBinding::inflate) {
|
||||||
|
|
@ -22,21 +21,17 @@ class WithdrawSuccessDialog(context: Context) : BindingDialog<ViewBinding>(conte
|
||||||
setCanCancel(false)
|
setCanCancel(false)
|
||||||
|
|
||||||
mBinding.run {
|
mBinding.run {
|
||||||
setOnClickBatch(tvConfirm, ivClose) {
|
setOnClickBatch(flAction, ivClose) {
|
||||||
when (this) {
|
when (this) {
|
||||||
tvConfirm, ivClose -> {
|
ivClose -> {
|
||||||
|
dismiss()
|
||||||
|
}
|
||||||
|
flAction -> {
|
||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun gotoWatchVideo() {
|
|
||||||
ownerActivity?.let { Router.Withdraw.startActivity(it) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ class WithdrawWatchAdDialog(context: Context) : BindingDialog<ViewBinding>(conte
|
||||||
|
|
||||||
flAction -> {
|
flAction -> {
|
||||||
gotoWatchVideo()
|
gotoWatchVideo()
|
||||||
|
dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -43,7 +44,10 @@ class WithdrawWatchAdDialog(context: Context) : BindingDialog<ViewBinding>(conte
|
||||||
|
|
||||||
|
|
||||||
private fun gotoWatchVideo() {
|
private fun gotoWatchVideo() {
|
||||||
ownerActivity?.let { Router.Withdraw.startActivity(it) }
|
// TODO -
|
||||||
|
//ownerActivity?.let { Router.Withdraw.startActivity(it) }
|
||||||
|
|
||||||
|
WithdrawSuccessDialog(context).show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,76 +1,95 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:clipChildren="false"
|
||||||
|
android:background="@mipmap/bg_withdrarw_sucess">
|
||||||
|
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:textSize="40sp"
|
||||||
|
android:textColor="@color/yellow_00"
|
||||||
|
android:text="@string/success"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@mipmap/icon_withdraw_success"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical|top"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="15dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="30sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="@color/green_2c"
|
||||||
|
android:text="@string/cash"
|
||||||
|
android:drawableStart="@mipmap/icon_cash"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_cash_num"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="5dp"
|
||||||
|
android:textSize="30sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="@color/green_2c"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="@string/withdraw_success_hint"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/fl_action"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:layout_marginTop="50dp"
|
||||||
|
android:background="@mipmap/bg_but_green" >
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:text="@string/confirm"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
android:id="@+id/iv_close"
|
android:id="@+id/iv_close"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="50dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_gravity="end"
|
android:layout_gravity="bottom|center"
|
||||||
android:src="@mipmap/icon_close_with_circle"
|
android:src="@mipmap/icon_close_with_circle"
|
||||||
android:layout_marginEnd="30dp"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:padding="15dp"
|
|
||||||
android:layout_marginTop="60dp"
|
|
||||||
android:clipChildren="false"
|
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:background="@drawable/bg_benefit_top_white"
|
|
||||||
>
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/tv_title"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textColor="@color/black_28"
|
|
||||||
android:text="@string/zero_buy_rule_dialog_title"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/tv_desc"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="15dp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:textColor="@color/gray6"
|
|
||||||
android:text="@string/zero_buy_rule_dialog_descript"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/tv_rules_1"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:textColor="@color/gray9"
|
|
||||||
android:text="@string/zero_buy_rule_dialog_rule"
|
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
|
||||||
android:id="@+id/tv_confirm"
|
|
||||||
android:layout_width="240dp"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:layout_marginTop="20dp"
|
|
||||||
android:background="@drawable/bg_but_zero_buy_dialog"
|
|
||||||
android:textSize="18sp"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
android:text="@string/understood"
|
|
||||||
android:gravity="center"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 252 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 133 KiB |
|
|
@ -85,6 +85,9 @@
|
||||||
<string name="withdraw_ad_hint">Progresso atingiu 100%! Pague agora</string>
|
<string name="withdraw_ad_hint">Progresso atingiu 100%! Pague agora</string>
|
||||||
<string name="withdraw_watch_ad_hint">Clique em \"Saque Já\" para acelerar</string>
|
<string name="withdraw_watch_ad_hint">Clique em \"Saque Já\" para acelerar</string>
|
||||||
<string name="withdraw_watch_ad_action">Saque Já</string>
|
<string name="withdraw_watch_ad_action">Saque Já</string>
|
||||||
|
<string name="success">Sucesso!</string>
|
||||||
|
<string name="withdraw_success_hint">Parabéns! Você realizou o saque com sucesso!</string>
|
||||||
|
<string name="confirm">Confirmar</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
Loading…
Reference in New Issue