Commit 6b37a295 authored by wanglei's avatar wanglei

...

parent de612962
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 设置背景色 -->
<item android:id="@android:id/background">
<shape>
<solid android:color="@android:color/transparent" />
</shape>
</item>
<!-- 设置进度条颜色 -->
<item android:id="@android:id/progress">
<clip>
<shape>
<solid android:color="@color/white" />
</shape>
</clip>
</item>
<!-- 次要进度条颜色 -->
<!-- <item android:id="@android:id/secondaryProgress">-->
<!-- <clip>-->
<!-- <shape>-->
<!-- <solid android:color="#00FF00" /> -->
<!-- </shape>-->
<!-- </clip>-->
<!-- </item>-->
</layer-list>
\ No newline at end of file
...@@ -10,10 +10,7 @@ ...@@ -10,10 +10,7 @@
</shape> </shape>
</item> </item>
<!-- android:bottom="3dp"-->
<!-- android:end="3dp"-->
<!-- android:start="3dp"-->
<!-- android:top="3dp"-->
<item android:id="@android:id/progress"> <item android:id="@android:id/progress">
<scale android:scaleWidth="100%"> <scale android:scaleWidth="100%">
<shape> <shape>
......
...@@ -77,6 +77,18 @@ ...@@ -77,6 +77,18 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_size" /> app:layout_constraintTop_toBottomOf="@id/tv_size" />
<ProgressBar
android:id="@+id/progress_bar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="3dp"
android:indeterminate="true"
android:indeterminateBehavior="repeat"
android:indeterminateDrawable="@drawable/progress_bar_clean"
android:indeterminateDuration="500"
app:layout_constraintBottom_toTopOf="@id/tv_path" />
<TextView <TextView
android:id="@+id/tv_path" android:id="@+id/tv_path"
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -90,6 +102,7 @@ ...@@ -90,6 +102,7 @@
android:textSize="12sp" android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
tools:ignore="RtlSymmetry" tools:ignore="RtlSymmetry"
tools:layout_editor_absoluteX="0dp"
tools:text="Scan in progress:/storage/emulated/0/qitu/download" /> tools:text="Scan in progress:/storage/emulated/0/qitu/download" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment