Add a basic account picker to the bookmarks picker
The account picker only shows up when you
have multiple accounts providing bookmarks.
Change-Id: I341d37d81551ca571713ac66d564c9cb0a86653c
diff --git a/res/layout/bookmarks.xml b/res/layout/bookmarks.xml
index e3e4a9d..f5c9331 100644
--- a/res/layout/bookmarks.xml
+++ b/res/layout/bookmarks.xml
@@ -24,11 +24,30 @@
android:layout_height="match_parent"
android:orientation="vertical"
>
- <Button android:id="@+id/up"
- android:layout_width="wrap_content"
+
+ <LinearLayout
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="@string/defaultBookmarksUpButton"
- />
+ android:orientation="horizontal"
+ >
+ <Button android:id="@+id/up"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/defaultBookmarksUpButton"
+ />
+
+ <!-- space -->
+ <View
+ android:layout_width="0dip"
+ android:layout_height="0dip"
+ android:layout_weight="1"
+ />
+
+ <Spinner android:id="@+id/accounts"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+ </LinearLayout>
<GridView android:id="@+id/grid"
android:layout_width="match_parent"
@@ -52,7 +71,7 @@
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge"
- android:text="@string/empty_history"
+ android:text="@string/empty_bookmarks_folder"
android:visibility="gone"
/>