diff options
author | John Reck <jreck@google.com> | 2011-05-13 10:44:25 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-13 10:44:25 -0700 |
commit | 6d45e134f2fd61e85b219e3fde7de796961bdd67 (patch) | |
tree | 74000f2c32d7b0ca099176e41359d9b0f136ef98 /res | |
parent | f86dabe4faae60a8bdad987a8d6a4d5ea101a72a (diff) | |
parent | 2eec4c34867bbcf2c136f4e6e7f74670360545fe (diff) | |
download | packages_apps_browser-6d45e134f2fd61e85b219e3fde7de796961bdd67.zip packages_apps_browser-6d45e134f2fd61e85b219e3fde7de796961bdd67.tar.gz packages_apps_browser-6d45e134f2fd61e85b219e3fde7de796961bdd67.tar.bz2 |
Merge "Make add/edit bookmark be account-aware"
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/crumb_divider.9.png | bin | 144 -> 0 bytes | |||
-rw-r--r-- | res/drawable-mdpi/crumb_divider.9.png | bin | 161 -> 0 bytes | |||
-rw-r--r-- | res/layout-xlarge/browser_add_bookmark.xml | 25 | ||||
-rw-r--r-- | res/layout/browser_add_bookmark_content.xml | 92 | ||||
-rw-r--r-- | res/values/strings.xml | 2 |
5 files changed, 45 insertions, 74 deletions
diff --git a/res/drawable-hdpi/crumb_divider.9.png b/res/drawable-hdpi/crumb_divider.9.png Binary files differdeleted file mode 100644 index f748ffa..0000000 --- a/res/drawable-hdpi/crumb_divider.9.png +++ /dev/null diff --git a/res/drawable-mdpi/crumb_divider.9.png b/res/drawable-mdpi/crumb_divider.9.png Binary files differdeleted file mode 100644 index 8c8fd43..0000000 --- a/res/drawable-mdpi/crumb_divider.9.png +++ /dev/null diff --git a/res/layout-xlarge/browser_add_bookmark.xml b/res/layout-xlarge/browser_add_bookmark.xml deleted file mode 100644 index 14edecf..0000000 --- a/res/layout-xlarge/browser_add_bookmark.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2011 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="@dimen/add_bookmark_width" - android:layout_height="wrap_content" - android:orientation="vertical" - > - - <include layout="@layout/browser_add_bookmark_content" /> - -</LinearLayout> diff --git a/res/layout/browser_add_bookmark_content.xml b/res/layout/browser_add_bookmark_content.xml index 6ee7a5a..6287ef8 100644 --- a/res/layout/browser_add_bookmark_content.xml +++ b/res/layout/browser_add_bookmark_content.xml @@ -15,51 +15,39 @@ --> <merge xmlns:android="http://schemas.android.com/apk/res/android"> - <RelativeLayout android:id="@+id/crumb_holder" + <LinearLayout android:id="@+id/crumb_holder" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="?android:attr/listPreferredItemHeight" - android:gravity="center_vertical" + android:layout_height="?android:attr/listPreferredItemHeight" android:visibility="gone" android:paddingLeft="5dip" android:paddingRight="5dip" + android:orientation="horizontal" > <com.android.browser.BreadCrumbView android:id="@+id/crumbs" - android:layout_width="wrap_content" - android:layout_height="?android:attr/listPreferredItemHeight" - android:layout_alignParentLeft="true" - android:layout_toLeftOf="@+id/add_divider" - android:layout_centerVertical="true" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_height="match_parent" /> + <View android:id="@+id/add_divider" + android:layout_width="1dip" + android:layout_height="match_parent" + android:background="?android:attr/dividerVertical" /> <TextView android:id="@+id/add_new_folder" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentRight="true" - android:layout_alignBaseline="@+id/crumbs" + android:layout_height="match_parent" android:drawableLeft="@drawable/ic_add_string" - android:gravity="center_vertical" android:text="@string/new_folder" android:visibility="gone" - android:layout_centerVertical="true" - android:layout_alignTop="@+id/crumbs" - android:layout_alignBottom="@+id/crumbs" android:focusable="true" android:background="?android:attr/selectableItemBackground" - android:textAppearance="?android:attr/textAppearanceMedium" /> - <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" - android:layout_centerVertical="true" - /> - </RelativeLayout> + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" /> + </LinearLayout> <LinearLayout android:id="@+id/title_holder" android:layout_width="match_parent" - android:layout_height="wrap_content" + android:layout_height="?android:attr/listPreferredItemHeight" android:orientation="horizontal" - android:minHeight="?android:attr/listPreferredItemHeight" android:paddingLeft="5dip" android:paddingRight="5dip" > @@ -72,12 +60,10 @@ android:drawableLeft="@drawable/ic_bookmark_on_holo_dark" android:text="@string/bookmark_this_page" android:textAppearance="?android:attr/textAppearanceMedium" /> - <ImageView android:id="@+id/remove_divider" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:src="@drawable/crumb_divider" - android:layout_centerVertical="true" + <View android:id="@+id/remove_divider" + android:layout_width="1dip" + android:layout_height="match_parent" + android:background="?android:attr/dividerVertical" android:visibility="gone" /> <TextView android:id="@+id/remove" @@ -90,11 +76,9 @@ android:visibility="gone" android:textAppearance="?android:attr/textAppearanceMedium" /> </LinearLayout> - <View android:id="@+id/titleDivider" - android:layout_width="match_parent" + <View android:layout_width="match_parent" android:layout_height="1dip" - android:gravity="fill_horizontal" - android:background="?android:attr/colorForeground" + android:background="?android:attr/dividerHorizontal" /> <TableLayout android:id="@+id/default_view" @@ -105,12 +89,12 @@ android:paddingTop="10dip" android:paddingLeft="20dip" android:paddingRight="20dip" > - <TableRow> + <TableRow android:layout_marginBottom="10dip"> <TextView android:id="@+id/titleText" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_marginBottom="30dip" + android:layout_gravity="center_vertical" android:text="@string/name" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -118,42 +102,54 @@ android:id="@+id/title" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_marginRight="20dip" android:layout_marginLeft="20dip" - android:gravity="fill_horizontal" android:inputType="textCapSentences" android:ellipsize="end" android:textAppearance="?android:attr/textAppearanceMedium" /> </TableRow> <TableRow + android:layout_marginBottom="10dip" android:id="@+id/row_address"> <TextView android:id="@+id/addressText" android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_vertical" android:text="@string/location" - android:gravity="left" - android:layout_marginBottom="20dip" android:textAppearance="?android:attr/textAppearanceMedium" /> <EditText android:id="@+id/address" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_marginRight="20dip" android:layout_marginLeft="20dip" android:hint="@string/http" - android:gravity="fill_horizontal" android:inputType="textUri" android:ellipsize="end" android:textAppearance="?android:attr/textAppearanceMedium" /> </TableRow> - <TableRow> + <TableRow android:layout_marginBottom="10dip"> + <TextView + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:text="@string/account" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <Spinner + android:id="@+id/accounts" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_marginLeft="20dip" + android:spinnerMode="dropdown" + /> + </TableRow> + <TableRow android:layout_marginBottom="10dip"> <TextView - android:id="@+id/add_to" android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_gravity="center_vertical" android:text="@string/containing_folder" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -161,10 +157,8 @@ android:id="@+id/folder" android:layout_height="wrap_content" android:layout_width="wrap_content" - android:layout_marginRight="20dip" android:layout_marginLeft="20dip" android:spinnerMode="dropdown" - android:gravity="center_vertical" /> </TableRow> </TableLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 1efc39c..90c6cc1 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -129,6 +129,8 @@ <string name="do_not_save">Cancel</string> <!-- Field label in Bookmark dialog box: refers to URL of the page to bookmark --> <string name="location">Address</string> + <!-- Field label in Bookmark dialog box: refers to the account to save the bookmark to --> + <string name="account">Account</string> <!-- Field label in Bookmark dialog box: refers to the folder in which to save the bookmark --> <string name="containing_folder">Add to</string> <!-- Default name for a new folder and label for a button that allows the user to create a new folder |