cash提示框大小调整
This commit is contained in:
parent
ddbf7dd400
commit
a651faf106
|
|
@ -7,6 +7,7 @@ import androidx.activity.viewModels
|
|||
import androidx.core.view.isVisible
|
||||
import com.ama.core.architecture.appBase.AppViewsActivity
|
||||
import com.ama.core.architecture.util.AndroidUtil
|
||||
import com.gamedog.vididin.beans.RecordGold
|
||||
import com.gamedog.vididin.core.login.login.AccountManager
|
||||
import com.viddin.videos.free.R
|
||||
import com.gamedog.vididin.main.interfaces.OnTabStyleListener
|
||||
|
|
@ -45,6 +46,15 @@ class VersionActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnT
|
|||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
butGold.setOnClickListener {
|
||||
try {
|
||||
val goldNum = evGold.text.toString().toLong()
|
||||
AccountManager.adjustGold(goldNum, RecordGold())
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,34 +44,64 @@
|
|||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_testing"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- cash -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="cash:"
|
||||
/>
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="cash:" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ev_cash"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
<EditText
|
||||
android:id="@+id/ev_cash"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/but_cash"
|
||||
android:text="确定"
|
||||
<Button
|
||||
android:id="@+id/but_cash"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="确定" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- gold -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
</Button>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="gold:" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ev_gold"
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/but_gold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="确定" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -2,14 +2,16 @@
|
|||
<FrameLayout 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="240dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_custom_toast"
|
||||
android:padding="15dp"
|
||||
android:paddingVertical="20dp"
|
||||
android:paddingHorizontal="20dp"
|
||||
tools:ignore="ResourceName">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/toast_container"
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
|
|
|
|||
Loading…
Reference in New Issue