diff options
author | Leon Scroggins <scroggo@google.com> | 2010-10-18 13:25:31 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2010-10-18 14:33:59 -0400 |
commit | 7e5f735150ad3fa89305a32889356ff94e453851 (patch) | |
tree | 80e90b3dbeb26a8ec6f6685d94df95339e389212 /res/layout | |
parent | 498326fa624b7570cb98ef8444d370b5e818a474 (diff) | |
download | packages_apps_Browser-7e5f735150ad3fa89305a32889356ff94e453851.zip packages_apps_Browser-7e5f735150ad3fa89305a32889356ff94e453851.tar.gz packages_apps_Browser-7e5f735150ad3fa89305a32889356ff94e453851.tar.bz2 |
More edits to the add bookmark page.
Bug:2953515
BreadCrumbView:
Make sure the height is at least as tall as the separator,
so the height will not change when a separator is added or
removed.
Override getBaseline() to return the baseline of the
crumbs.
AddBookmarkPage:
Move the Add new folder button to the top.
Update the divider between the title and the rest of the
dialog.
Change-Id: I60d329626bd4ec2975cbf6ef00081338beeb7553
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/browser_add_bookmark.xml | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/res/layout/browser_add_bookmark.xml b/res/layout/browser_add_bookmark.xml index e5f164f..aa8e1a2 100644 --- a/res/layout/browser_add_bookmark.xml +++ b/res/layout/browser_add_bookmark.xml @@ -19,38 +19,52 @@ android:layout_height="wrap_content" android:orientation="vertical" > - - <com.android.browser.BreadCrumbView android:id="@+id/crumbs" + <RelativeLayout android:id="@+id/crumb_holder" android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="gone" - /> - <LinearLayout android:id="@+id/fake_title_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" > - <ImageView + <com.android.browser.BreadCrumbView android:id="@+id/crumbs" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:src="@drawable/ic_list_bookmark" + android:layout_alignParentLeft="true" + android:layout_toLeftOf="@+id/add_divider" /> - <TextView android:id="@+id/fake_title" + <!-- FIXME: The drawable does not line up properly. We may also want a + different asset in the final version. --> + <TextView + android:id="@+id/add_new_folder" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/bookmark_this_page" - android:layout_gravity="center_horizontal" + android:layout_alignParentRight="true" + android:layout_alignBaseline="@+id/crumbs" + android:drawableLeft="@drawable/ic_add_string" + android:text="@string/add_new_folder" + android:visibility="gone" android:textAppearance="?android:attr/textAppearanceMedium" /> - </LinearLayout> + <ImageView android:id="@+id/add_divider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toLeftOf="@+id/add_new_folder" + android:src="@drawable/crumb_divider" + /> + </RelativeLayout> + <!-- FIXME: The drawable does not line up properly. We may also want a + different asset in the final version. --> + <TextView android:id="@+id/fake_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_list_bookmark" + android:text="@string/bookmark_this_page" + android:layout_gravity="left" + android:textAppearance="?android:attr/textAppearanceMedium" /> - <ImageView android:id="@+id/titleDivider" + <View android:id="@+id/titleDivider" android:layout_width="match_parent" android:layout_height="1dip" - android:scaleType="fitXY" android:gravity="fill_horizontal" - android:src="@drawable/dialog_divider_horizontal_light" - android:layout_marginLeft="10dip" - android:layout_marginRight="10dip"/> + android:background="?android:attr/colorForeground" + /> <!-- XXX Use a TableLayout instead --> <RelativeLayout android:id="@+id/default_view" @@ -158,14 +172,6 @@ android:layout_height="wrap_content" android:visibility="gone" /> - <Button - android:id="@+id/add_new_folder" - android_marginTop="16dip" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_horizontal" - android:text="@string/add_new_folder" - android:textAppearance="?android:attr/textAppearanceMedium" /> </LinearLayout> <LinearLayout |