Browse Source

1:优化了加载页面 。

guiying712 8 years ago
parent
commit
481532715b

+ 5 - 5
lib_common/src/main/res/layout/layout_load_more.xml

@@ -7,14 +7,14 @@
     android:layout_height="50dp">
 
     <ProgressBar
-        android:layout_width="20dp"
-        android:layout_height="20dp" />
+        android:layout_width="30dp"
+        android:layout_height="30dp" />
 
     <TextView
         android:text="@string/more_loading"
-        android:textSize="14sp"
-        android:layout_marginLeft="3dp"
-        android:layout_marginStart="3dp"
+        android:textSize="15sp"
+        android:layout_marginLeft="5dp"
+        android:layout_marginStart="5dp"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content" />
 

+ 1 - 1
module_girls/src/main/java/com/guiying/girls/main/GirlsPresenter.java

@@ -46,6 +46,6 @@ public class GirlsPresenter implements GirlsContract.Presenter {
 
     @Override
     public void start() {
-        getGirls(10, 1, true);
+        getGirls(20, 1, true);
     }
 }

+ 1 - 1
module_girls/src/main/java/com/guiying/girls/main/GirlsView.java

@@ -41,7 +41,7 @@ public class GirlsView extends FrameLayout implements GirlsContract.View, SwipeR
     private GirlsAdapter mAdapter;
     private ArrayList<Girls> mData;
     private int page = 1;
-    private int size = 10;
+    private int size = 20;
 
     public GirlsView(Context context) {
         super(context);