刷新UI
This commit is contained in:
parent
41f7f9a246
commit
5487b28be4
|
|
@ -308,6 +308,7 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
|
||||||
val subBean = mCurItem.subItemList[mSelectingIndex]
|
val subBean = mCurItem.subItemList[mSelectingIndex]
|
||||||
val curProgress = subBean.currentProgress
|
val curProgress = subBean.currentProgress
|
||||||
progressBar.setProgress(curProgress)
|
progressBar.setProgress(curProgress)
|
||||||
|
tvProgress.text = "$curProgress%"
|
||||||
|
|
||||||
ivAction.isVisible = curProgress < 100
|
ivAction.isVisible = curProgress < 100
|
||||||
if (curProgress < 100) {
|
if (curProgress < 100) {
|
||||||
|
|
|
||||||
|
|
@ -109,14 +109,30 @@
|
||||||
android:text="@string/withdraw_sub_top_hint_2"
|
android:text="@string/withdraw_sub_top_hint_2"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<com.ama.core.architecture.widget.CustomProgressBar
|
<FrameLayout
|
||||||
android:id="@+id/progress_bar"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="12dp"
|
android:layout_height="13dp"
|
||||||
android:layout_marginHorizontal="20dp"
|
android:layout_marginHorizontal="20dp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp">
|
||||||
/>
|
<com.ama.core.architecture.widget.CustomProgressBar
|
||||||
|
android:id="@+id/progress_bar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
/>
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/tv_progress"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:textSize="11sp"
|
||||||
|
android:layout_centerInParent="true"
|
||||||
|
/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/recycler_view"
|
android:id="@+id/recycler_view"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue