fix: 批量提交数据增加进度及错误原因展示
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<corners android:radius="0.1dip" />
|
||||
<solid android:color="@color/colorGrays"></solid>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:id="@android:id/secondaryProgress">
|
||||
<clip>
|
||||
<shape>
|
||||
<corners android:radius="0.1dip" />
|
||||
<solid android:color="@color/black"></solid>
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<corners android:radius="0.1dip" />
|
||||
<solid android:color="@color/colorBlue"></solid>
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -5,6 +5,7 @@
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/stay_main_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_margin="10dp"
|
||||
@@ -63,4 +64,42 @@
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/layer_pb"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/default_widget_padding"
|
||||
app:layout_constraintTop_toBottomOf="@id/stay_main_info"
|
||||
app:layout_constraintLeft_toLeftOf="parent">
|
||||
<ProgressBar
|
||||
android:id="@+id/pb_stay_upload"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="2dp"
|
||||
android:layout_gravity="center"
|
||||
android:progressDrawable="@drawable/default_progress"
|
||||
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||
></ProgressBar>
|
||||
<TextView
|
||||
android:id="@+id/tv_pb_stay_upload"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:textSize="8sp"
|
||||
android:background="@color/white80"
|
||||
android:layout_height="wrap_content"></TextView>
|
||||
</FrameLayout>
|
||||
<TextView
|
||||
android:id="@+id/tv_upload_result"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
android:textSize="12sp"
|
||||
android:maxLength="20"
|
||||
android:ellipsize="middle"
|
||||
android:lines="1"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/colorRed"
|
||||
android:paddingHorizontal="@dimen/default_widget_padding"
|
||||
app:layout_constraintTop_toBottomOf="@id/layer_pb"
|
||||
app:layout_constraintRight_toRightOf="parent"></TextView>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user