Kaynağa Gözat

修改各种bug

zhaoyi 8 yıl önce
ebeveyn
işleme
a87f095a66
1 değiştirilmiş dosya ile 21 ekleme ve 24 silme
  1. 21 24
      app/src/main/res/layout/main_activity.xml

+ 21 - 24
app/src/main/res/layout/main_activity.xml

@@ -5,18 +5,16 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent">
 
-    <android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
-                                                  xmlns:app="http://schemas.android.com/apk/res-auto"
-                                                  android:id="@+id/swipe_main_activity"
-                                                  android:layout_width="match_parent"
-                                                  android:layout_height="match_parent"
-                                                  android:addStatesFromChildren="true"
-                                                  app:layout_behavior="@string/appbar_scrolling_view_behavior">
-
-        <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
-                                                         xmlns:app="http://schemas.android.com/apk/res-auto"
-                                                         android:layout_width="match_parent"
-                                                         android:layout_height="match_parent">
+    <android.support.v4.widget.SwipeRefreshLayout
+        android:id="@+id/swipe_main_activity"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:addStatesFromChildren="true"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+        <android.support.design.widget.CoordinatorLayout
+            android:layout_width="match_parent"
+            android:layout_height="match_parent">
 
             <android.support.design.widget.AppBarLayout
                 android:id="@+id/app_layout_main_activity"
@@ -31,6 +29,17 @@
                     app:layout_scrollFlags="scroll|exitUntilCollapsed">
 
 
+                    <android.support.v7.widget.Toolbar
+                        android:layout_width="match_parent"
+                        android:layout_height="@dimen/layout_heigh_default"
+                        android:layout_gravity="top"
+                        app:contentInsetLeft="0dp"
+                        app:contentInsetStart="0dp"
+                        app:layout_collapseMode="pin">
+
+                        <include layout="@layout/title"/>
+                    </android.support.v7.widget.Toolbar>
+
                     <android.support.constraint.ConstraintLayout
                         android:layout_width="match_parent"
                         android:layout_height="wrap_content"
@@ -99,18 +108,6 @@
 
                     </android.support.constraint.ConstraintLayout>
 
-
-                    <android.support.v7.widget.Toolbar
-                        android:layout_width="match_parent"
-                        android:layout_height="@dimen/layout_heigh_default"
-                        android:layout_gravity="top"
-                        app:contentInsetLeft="0dp"
-                        app:contentInsetStart="0dp"
-                        app:layout_collapseMode="pin">
-
-                        <include layout="@layout/title"/>
-                    </android.support.v7.widget.Toolbar>
-
                 </android.support.design.widget.CollapsingToolbarLayout>
 
                 <com.sheep.jiuyan.samllsheep.page.view.RappTabLayout