summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2010-06-04 16:36:45 -0400
committerCary Clark <cary@android.com>2010-06-24 16:51:40 -0400
commit01cfcdd0b77d672f5c09d98af683c6732c8250d8 (patch)
treef3380fc6d979179fe0562dc9190c0d48a7da0855 /res
parent61fc77c8eab787cf5e3ecdc3f24b3e89b9fd2a3c (diff)
downloadpackages_apps_Browser-01cfcdd0b77d672f5c09d98af683c6732c8250d8.zip
packages_apps_Browser-01cfcdd0b77d672f5c09d98af683c6732c8250d8.tar.gz
packages_apps_Browser-01cfcdd0b77d672f5c09d98af683c6732c8250d8.tar.bz2
Refactor find and select dialogs
(This is a work in progress -- assets in particular are not final) Use common code when showing the select and find dialogs. Both now use similarly constructed contextual action bars and share resources where possible. Both share a common base class so supporting code can communicate with either. Companion changes in frameworks/base and external/webkit Change-Id: I62e15afd2730444985f8dbd2472df3cae351f47a http://b/262451
Diffstat (limited to 'res')
-rw-r--r--res/anim/dialog_enter.xml (renamed from res/anim/find_dialog_enter.xml)0
-rw-r--r--res/anim/dialog_exit.xml (renamed from res/anim/find_dialog_exit.xml)0
-rw-r--r--res/drawable-hdpi/ic_btn_copy.pngbin0 -> 1128 bytes
-rwxr-xr-xres/drawable-hdpi/ic_btn_find.pngbin0 -> 3610 bytes
-rw-r--r--res/drawable-hdpi/ic_btn_select_all.pngbin0 -> 1991 bytes
-rw-r--r--res/drawable-hdpi/ic_btn_share.pngbin0 -> 2194 bytes
-rw-r--r--res/layout/browser_select.xml67
7 files changed, 67 insertions, 0 deletions
diff --git a/res/anim/find_dialog_enter.xml b/res/anim/dialog_enter.xml
index 6fbcb9e..6fbcb9e 100644
--- a/res/anim/find_dialog_enter.xml
+++ b/res/anim/dialog_enter.xml
diff --git a/res/anim/find_dialog_exit.xml b/res/anim/dialog_exit.xml
index 9845849..9845849 100644
--- a/res/anim/find_dialog_exit.xml
+++ b/res/anim/dialog_exit.xml
diff --git a/res/drawable-hdpi/ic_btn_copy.png b/res/drawable-hdpi/ic_btn_copy.png
new file mode 100644
index 0000000..04fda7f
--- /dev/null
+++ b/res/drawable-hdpi/ic_btn_copy.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_btn_find.png b/res/drawable-hdpi/ic_btn_find.png
new file mode 100755
index 0000000..20e1fbc
--- /dev/null
+++ b/res/drawable-hdpi/ic_btn_find.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_btn_select_all.png b/res/drawable-hdpi/ic_btn_select_all.png
new file mode 100644
index 0000000..839915b
--- /dev/null
+++ b/res/drawable-hdpi/ic_btn_select_all.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_btn_share.png b/res/drawable-hdpi/ic_btn_share.png
new file mode 100644
index 0000000..44db9b1
--- /dev/null
+++ b/res/drawable-hdpi/ic_btn_share.png
Binary files differ
diff --git a/res/layout/browser_select.xml b/res/layout/browser_select.xml
new file mode 100644
index 0000000..b30be8d
--- /dev/null
+++ b/res/layout/browser_select.xml
@@ -0,0 +1,67 @@
+<?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:id="@+id/selectControls"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="5dip"
+ android:paddingLeft="4dip"
+ android:paddingRight="4dip"
+ android:paddingBottom="1dip"
+ android:background="@android:drawable/bottom_bar">
+ <ImageButton
+ android:src="@drawable/ic_btn_copy"
+ android:id="@+id/copy"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+
+ <ImageButton
+ android:src="@drawable/ic_btn_share"
+ android:id="@+id/share"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+
+ <ImageButton
+ android:src="@drawable/ic_btn_select_all"
+ android:id="@+id/select_all"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+
+ <ImageButton
+ android:src="@drawable/ic_btn_find"
+ android:id="@+id/find"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+
+ <LinearLayout
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent"
+ android:layout_weight="1"
+ />
+
+ <ImageButton
+ android:src="@drawable/ic_btn_close_panel"
+ android:id="@+id/done"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ />
+</LinearLayout>
+