]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/bookmarks_coordinatorlayout.xml
Fix a crach when editing a bookmark in the bookmarks drawer. https://redmine.stoutne...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_coordinatorlayout.xml
index e07ce174955ee960ca8442f7c91209594f374dbe..a31ec0e1d6f35c119292f9463325e8c7ffe738d1 100644 (file)
         </android.support.design.widget.AppBarLayout>
 
         <!-- `android:choiceMode="multipleChoiceModal"` allows the contextual action menu to select more than one item at a time.
-            `android:dividerHeight` must be specified with `android:divider` or the height will be `0dp`.  In our case we want the height to be `0dp`. -->
+            `android:dividerHeight` must be at least `1dp` or the `ListView` is inconsistent in calculating how many bookmarks are displayed. -->
         <ListView
             android:id="@+id/bookmarks_listview"
             android:layout_height="match_parent"
             android:layout_width="match_parent"
             android:choiceMode="multipleChoiceModal"
             android:divider="@color/transparent"
-            android:dividerHeight="0dp" />
+            android:dividerHeight="1dp" />
     </LinearLayout>
 
+    <android.support.design.widget.FloatingActionButton
+        android:id="@+id/create_bookmark_folder_fab"
+        android:layout_height="wrap_content"
+        android:layout_width="wrap_content"
+        android:layout_gravity="bottom|end"
+        android:layout_marginEnd="16dp"
+        android:layout_marginBottom="85dp"
+        android:src="?attr/addFolderIcon" />
+
     <android.support.design.widget.FloatingActionButton
         android:id="@+id/create_bookmark_fab"
         android:layout_height="wrap_content"
         android:layout_width="wrap_content"
         android:layout_gravity="bottom|end"
         android:layout_margin="16dp"
-        android:src="?attr/addIcon" />
+        android:src="?attr/addBookmarkIcon" />
 </android.support.design.widget.CoordinatorLayout>
\ No newline at end of file