diff options
author | Michael Kolb <kolby@google.com> | 2010-09-29 00:23:46 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2010-09-29 10:34:27 -0700 |
commit | d40ac1afadfbba82bc266eebc029f3c99884c9a3 (patch) | |
tree | a1b8c70b451edf0956b76d50d9873940c34116ea /res/layout | |
parent | a9bad830efad4c098e6f874704dedc005958aedf (diff) | |
download | packages_apps_browser-d40ac1afadfbba82bc266eebc029f3c99884c9a3.zip packages_apps_browser-d40ac1afadfbba82bc266eebc029f3c99884c9a3.tar.gz packages_apps_browser-d40ac1afadfbba82bc266eebc029f3c99884c9a3.tar.bz2 |
changed AddBookmark UI
make folder editing and add folder button mutually
exclusive
use ok button in edit folder name mode in addition to
soft keyboard enter
fixed folder list on startup
Change-Id: Ie0bec93f1afe1f16e1693086f2fb25fd5ff723ad
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/browser_add_bookmark.xml | 15 | ||||
-rw-r--r-- | res/layout/folder_list_item.xml | 37 |
2 files changed, 49 insertions, 3 deletions
diff --git a/res/layout/browser_add_bookmark.xml b/res/layout/browser_add_bookmark.xml index e22e820..604bda8 100644 --- a/res/layout/browser_add_bookmark.xml +++ b/res/layout/browser_add_bookmark.xml @@ -113,7 +113,7 @@ </RelativeLayout> <LinearLayout android:id="@+id/folder_selector" - android:layout_width="wrap_content" + android:layout_width="500dip" android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone" @@ -121,26 +121,35 @@ <TextView android:id="@+id/path" + android:layout_marginTop="4dip" + android:layout_marginLeft="16dip" + android:layout_marginRight="16dip" + android:layout_marginBottom="4dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="start" android:text="@string/bookmarks" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:textAppearance="?android:attr/textAppearanceLarge" /> <ListView android:id="@+id/list" - android:layout_width="wrap_content" + android:layout_marginLeft="16dip" + android:layout_marginRight="16dip" + android:layout_width="match_parent" android:layout_height="wrap_content" /> <EditText android:id="@+id/folder_namer" + android:layout_marginLeft="16dip" + android:layout_marginRight="16dip" android:layout_width="match_parent" 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" diff --git a/res/layout/folder_list_item.xml b/res/layout/folder_list_item.xml new file mode 100644 index 0000000..56c597b --- /dev/null +++ b/res/layout/folder_list_item.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <ImageView + android:id="@+id/icon1" + style="@style/HoloIcon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeight" + android:src="@drawable/ic_go_normal_white" /> + <TextView + android:id="@android:id/text1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" + android:paddingLeft="6dip" + android:minHeight="?android:attr/listPreferredItemHeight" /> +</LinearLayout> |