瀏覽代碼

add item to the top (WiP)

AndyScherzinger 8 年之前
父節點
當前提交
9899dbbf13
共有 1 個文件被更改,包括 34 次插入13 次删除
  1. 34 13
      src/main/res/layout/folder_sync_layout.xml

+ 34 - 13
src/main/res/layout/folder_sync_layout.xml

@@ -36,6 +36,27 @@
             layout="@layout/toolbar_standard"/>
 
         <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:background="@color/listItemHighlighted"
+            android:gravity="center">
+
+            <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:padding="@dimen/standard_padding"
+                android:src="@drawable/ic_create_folder"/>
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:paddingBottom="@dimen/standard_padding"
+                android:paddingRight="@dimen/standard_padding"
+                android:paddingTop="@dimen/standard_padding"
+                android:text="Create custom folder"/>
+        </LinearLayout>
+
+        <FrameLayout
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_above="@+id/bottom_navigation_view"
@@ -43,18 +64,6 @@
             android:id="@+id/ListLayout"
             android:orientation="vertical">
 
-            <android.support.v7.widget.RecyclerView
-                android:id="@android:id/list"
-                android:layout_width="match_parent"
-                android:layout_height="match_parent"
-                android:clipToPadding="false"
-                android:scrollbarStyle="outsideOverlay"
-                android:scrollbars="vertical"
-                android:visibility="visible"
-                android:layout_marginRight="-3dp"
-                android:layout_marginLeft="-3dp"
-                android:layout_marginBottom="-3dp"/>
-
             <LinearLayout
                 android:id="@android:id/progress"
                 android:layout_width="match_parent"
@@ -87,7 +96,19 @@
                 android:layout_margin="@dimen/standard_margin"
                 android:gravity="center"
                 android:text="@string/folder_sync_no_results"
-                android:visibility="gone" />
+                android:visibility="gone"/>
+
+            <android.support.v7.widget.RecyclerView
+                android:id="@android:id/list"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:layout_marginBottom="-3dp"
+                android:layout_marginLeft="-3dp"
+                android:layout_marginRight="-3dp"
+                android:clipToPadding="false"
+                android:scrollbarStyle="outsideOverlay"
+                android:scrollbars="vertical"
+                android:visibility="visible"/>
         </LinearLayout>
 
         <android.support.design.widget.BottomNavigationView