]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/bookmarks_coordinatorlayout.xml
Add the ability to delete bookmarks.
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_coordinatorlayout.xml
index 152e3b3ab1bd35085572b0d8593428336c51804e..15bde09949fed7436b7c600a56143cda70b37182 100644 (file)
                 app:popupTheme="@style/PrivacyBrowser.PopupOverlay" />
         </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. -->
         <ListView
             android:id="@+id/bookmarks_listview"
             android:layout_height="match_parent"
-            android:layout_width="match_parent" />
+            android:layout_width="match_parent"
+            android:choiceMode="multipleChoiceModal"
+            android:divider="@color/white"
+            android:dividerHeight="0dp" />
     </LinearLayout>
 
     <android.support.design.widget.FloatingActionButton