bug修改 - 点击填账号那块,能看到里面是有账号的,但是外面没有显示,这个外面也需要显示的,想参考图那样
This commit is contained in:
parent
2527c6369f
commit
eb581c16ae
|
|
@ -4,6 +4,7 @@ import android.content.Context
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
|
import androidx.core.view.isVisible
|
||||||
import com.ama.core.architecture.util.ResUtil
|
import com.ama.core.architecture.util.ResUtil
|
||||||
import com.gamedog.vididin.core.login.login.AccountManager
|
import com.gamedog.vididin.core.login.login.AccountManager
|
||||||
import com.vididin.real.money.game.R
|
import com.vididin.real.money.game.R
|
||||||
|
|
@ -25,9 +26,16 @@ class WithDrawItemBankView @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateBankAccountInfo() {
|
fun updateBankAccountInfo() {
|
||||||
|
with(mBinding) {
|
||||||
if (AccountManager.isBankAccountExist()) {
|
if (AccountManager.isBankAccountExist()) {
|
||||||
|
bankContainer.isVisible = true
|
||||||
|
tvBankHint.isVisible = false
|
||||||
AccountManager.getBankInfo()?.bankAccount?.let {
|
AccountManager.getBankInfo()?.bankAccount?.let {
|
||||||
mBinding.tvBankAccount.text = it
|
tvBankAccount.text = it
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
bankContainer.isVisible = false
|
||||||
|
tvBankHint.isVisible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/tv_bank_account"
|
android:id="@+id/tv_bank_hint"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
|
|
@ -48,4 +48,44 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/bank_container"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_weight="1">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_bank_type"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textSize="15sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="@color/gray3"
|
||||||
|
android:text="@string/cpf_no"
|
||||||
|
android:singleLine="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_bank_account"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="@color/green_39"
|
||||||
|
android:text=""
|
||||||
|
android:singleLine="true"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
@ -81,6 +81,7 @@
|
||||||
<string name="pix">pix</string>
|
<string name="pix">pix</string>
|
||||||
<string name="withdraw_confirm_auth_type">Tipo de conta PIX:</string>
|
<string name="withdraw_confirm_auth_type">Tipo de conta PIX:</string>
|
||||||
<string name="cpf">CPF</string>
|
<string name="cpf">CPF</string>
|
||||||
|
<string name="cpf_no">#CPF</string>
|
||||||
<string name="withdraw_confirm_bank_account">Conta CPF:</string>
|
<string name="withdraw_confirm_bank_account">Conta CPF:</string>
|
||||||
<string name="withdraw_confirm_cash_num">Valor do saque:</string>
|
<string name="withdraw_confirm_cash_num">Valor do saque:</string>
|
||||||
<string name="alter">Alterar</string>
|
<string name="alter">Alterar</string>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue