<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright © 2016-2017 Soren Stoutner <soren@stoutner.com>.
+ Copyright © 2016-2018 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
<android.support.design.widget.AppBarLayout
android:id="@+id/bookmarks_appbarlayout"
android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:theme="@style/AppBarOverlay" >
+ android:layout_width="match_parent" >
- <!-- android:theme="@style/PrivacyBrowser.DarkAppBar" makes the text and icons in the AppBar white. -->
<android.support.v7.widget.Toolbar
android:id="@+id/bookmarks_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="@color/blue_700"
- android:theme="@style/DarkAppBar"
- app:popupTheme="@style/LightPopupOverlay" />
+ android:background="?attr/colorPrimaryDark"
+ android:theme="?attr/appBarTextTheme"
+ app:popupTheme="?attr/popupsTheme" />
</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/white"
- android:dividerHeight="0dp" />
+ android:divider="@color/transparent"
+ 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="@drawable/add" />
+ android:src="?attr/addBookmarkIcon" />
</android.support.design.widget.CoordinatorLayout>
\ No newline at end of file