浏览代码

[마이[Bug] 버킷리스트 리싸이클러뷰 중앙정렬

Hasemi 7 年之前
父节点
当前提交
1633f7635d
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      app/src/main/res/layout/fragment_my_bucket_list.xml

+ 6 - 3
app/src/main/res/layout/fragment_my_bucket_list.xml

@@ -82,20 +82,23 @@
       />
   </RelativeLayout>
 
-  <RelativeLayout
+  <LinearLayout
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
+    android:layout_gravity="center"
     android:layout_marginStart="25dp"
     android:layout_marginTop="28dp"
     android:layout_marginEnd="25dp"
-    android:layout_marginBottom="22dp">
+    android:layout_marginBottom="22dp"
+    android:orientation="vertical">
 
     <android.support.v7.widget.RecyclerView
       android:id="@+id/recycler_view_my_bucket_list"
+      android:layout_gravity="center_horizontal"
       android:layout_width="match_parent"
       android:layout_height="wrap_content">
     </android.support.v7.widget.RecyclerView>
 
-  </RelativeLayout>
+  </LinearLayout>
 
 </LinearLayout>