]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/res/layout/bookmarks_databaseview_coordinatorlayout.xml
Add a context menu to delete bookmarks from the database view activity. https:/...
[PrivacyBrowserAndroid.git] / app / src / main / res / layout / bookmarks_databaseview_coordinatorlayout.xml
index 207b19d999439e418b01aeaf02975df24d31d829..378a71e1f7d95fa261e6294e160dbca0028bbc6e 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  Copyright © 2016-2017 Soren Stoutner <soren@stoutner.com>.
+  Copyright © 2016-2019 Soren Stoutner <soren@stoutner.com>.
 
   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
 
     When it is specified the theme should include `<item name="android:windowTranslucentStatus">true</item>`
     to make the status bar a transparent, darkened overlay. -->
 <android.support.design.widget.CoordinatorLayout
-    android:id="@+id/bookmarks_database_view_coordinatorlayout"
+    android:id="@+id/bookmarks_databaseview_coordinatorlayout"
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_height="match_parent"
     android:layout_width="match_parent"
     android:fitsSystemWindows="true" >
 
-    <!-- The `LinearLayout` with `orientation="vertical"` moves the `ListView` below the `AppBarLayout`. -->
+    <!-- The `LinearLayout` with `orientation="vertical"` moves the list view below the app bar layout. -->
     <LinearLayout
         android:layout_height="match_parent"
         android:layout_width="match_parent"
         android:orientation="vertical" >
 
         <android.support.design.widget.AppBarLayout
-            android:id="@+id/bookmarks_database_view_appbarlayout"
+            android:id="@+id/bookmarks_databaseview_appbarlayout"
             android:layout_height="wrap_content"
             android:layout_width="match_parent" >
 
             <android.support.v7.widget.Toolbar
-                android:id="@+id/bookmarks_database_view_toolbar"
+                android:id="@+id/bookmarks_databaseview_toolbar"
                 android:layout_height="wrap_content"
                 android:layout_width="match_parent"
                 android:background="?attr/colorPrimaryDark"
                 android:theme="?attr/appBarTextTheme" />
         </android.support.design.widget.AppBarLayout>
 
+        <!-- `android:choiceMode="multipleChoiceModal"` allows the contextual action menu to select more than one item at a time. -->
         <ListView
-            android:id="@+id/bookmarks_database_view_listview"
+            android:id="@+id/bookmarks_databaseview_listview"
             android:layout_height="match_parent"
-            android:layout_width="match_parent" />
+            android:layout_width="match_parent"
+            android:choiceMode="multipleChoiceModal" />
     </LinearLayout>
 </android.support.design.widget.CoordinatorLayout>
\ No newline at end of file