Browse Source

2024-11-01 修改

修改:
1. 文档下载 UI样式调整
zhaiy 2 months ago
parent
commit
761b6ad896

+ 3 - 3
app/src/main/java/com/pan_american/android/ui/document/DocumentGroupListActivity.kt

@@ -117,7 +117,7 @@ class DocumentGroupListActivity : BaseActivity<ActivityDocumentGroupListBinding>
     override fun initViews() {
 
         groupNameListRequest.pageIndex = pageIndex
-        groupNameListRequest.pageSize = 10
+        groupNameListRequest.pageSize = 20
 
         binding.groupListContainer.setRefreshHeader(ClassicsHeader(OASystem.context))
         binding.groupListContainer.setRefreshFooter(ClassicsFooter(OASystem.context))
@@ -185,8 +185,8 @@ class DocumentGroupListActivity : BaseActivity<ActivityDocumentGroupListBinding>
     }
 
     private fun getTotalPage(dataCount: Int): Int {
-        var totalPage = dataCount / 10
-        if (dataCount % 10 != 0) {
+        var totalPage = dataCount / 20
+        if (dataCount % 20 != 0) {
             totalPage++
         }
 

+ 4 - 4
app/src/main/res/layout/item_group_name_list.xml

@@ -9,8 +9,8 @@
     tools:viewBindingIgnore="true">
 
     <ImageView
-        android:layout_width="@dimen/common_padding_heavy"
-        android:layout_height="@dimen/common_padding_heavy"
+        android:layout_width="30dp"
+        android:layout_height="30dp"
         android:layout_marginStart="@dimen/common_padding"
         android:src="@mipmap/icon_document"
         tools:ignore="ContentDescription"
@@ -29,13 +29,13 @@
             android:layout_marginEnd="@dimen/common_padding"
             android:maxLines="1"
             android:textColor="@color/text_color"
-            android:textSize="@dimen/text_size_medium" />
+            android:textSize="@dimen/text_size_medium"
+            android:padding="@dimen/common_padding"/>
 
         <View
             android:layout_width="match_parent"
             android:layout_height="@dimen/line"
             android:layout_marginStart="@dimen/common_padding"
-            android:layout_marginTop="@dimen/common_padding_huge"
             android:background="@color/line_color" />
 
     </LinearLayout>