Commit dfca6229 authored by wanglei's avatar wanglei

...

parent a97d746f
...@@ -107,6 +107,7 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu ...@@ -107,6 +107,7 @@ class DocumentPageFragment() : BaseFragment<FragmentDocumentPageBinding>(), Docu
} }
launch(Dispatchers.Main) { launch(Dispatchers.Main) {
binding.progressBar.visibility = View.GONE
if (showEmpty) { if (showEmpty) {
binding.llEmpty.isVisible = arrayList.isEmpty() binding.llEmpty.isVisible = arrayList.isEmpty()
} }
......
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv" android:id="@+id/rv"
android:background="#F4F5FA"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#F4F5FA"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_document" /> tools:listitem="@layout/item_document" />
...@@ -64,4 +64,10 @@ ...@@ -64,4 +64,10 @@
</LinearLayout> </LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
</FrameLayout> </FrameLayout>
\ No newline at end of file
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