diff options
author | Leon Scroggins III <scroggo@google.com> | 2010-04-19 13:21:13 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2010-05-06 11:42:12 -0400 |
commit | 211ba54a3052f7e68bf8af035ea1ef4e9445130c (patch) | |
tree | 08deedf1efe1dca7626ffec910191a435f968e79 /res/values/styles.xml | |
parent | 875dfa2ba28db2d243e44722c69009377377e5b2 (diff) | |
download | packages_apps_browser-211ba54a3052f7e68bf8af035ea1ef4e9445130c.zip packages_apps_browser-211ba54a3052f7e68bf8af035ea1ef4e9445130c.tar.gz packages_apps_browser-211ba54a3052f7e68bf8af035ea1ef4e9445130c.tar.bz2 |
Allow interaction with page while Find is up.
In order to do this, I have changed the FindDialog from
an actual Dialog, which steals all touch events, to
a Linearlayout, which rests below the WebView.
Also dismiss Find when the user opens/closes a subwindow,
or navigates to a new page.
res/layout/browser_subwindow.xml:
Add an id to the holder for the subwindow, so it can be
used to add the FindDialog.
res/values/styles.xml:
Remove the style for FindDialog, as the animations are
now added in code (since FindDialog is now a LinearLayout,
which has no theme).
res/values/themes.xml:
Deleted, as the only theme there was FindDialog, which has
been removed.
src/com/android/browser/BrowserActivity.java:
closeFind is now the starting point for removing the
FindDialog, so that it can be called from Tab.
Close the FindDialog when a new page starts loading.
Call showFind on the current Tab.
src/com/android/browser/FindDialog.java
Change from a Dialog to a LinearLayout, so it can be
inserted into the layout.
Call closeFind directly, which now calls dismiss.
Perform the animations which were previously part
of the theme.
Remove the call to set the height of the find dialog,
which is no longer necessary.
Open and close the IME when opening and closing Find.
src/com/android/browser/Tab.java
Change pointer to mContainer to a LinearLayout, which is
used to add the FindDialog.
Add a pointer to BrowserActivity to SubWindowClient, which
is then used to close the FindDialog in onPageStarted.
Close find when adding/removing a Tab or its subwindow.
Add showFind, which attaches it to the layout for the tab,
and closeFind, which removes it from the layout.
Requires a change to frameworks/base
Change-Id: If6745fb65c5628da827781a7b98061e87b279844
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r-- | res/values/styles.xml | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml index 4779aa1..2e8510a 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -30,11 +30,6 @@ <item name="android:windowContentOverlay">@null</item> </style> - <style name="FindDialog"> - <item name="android:windowEnterAnimation">@anim/find_dialog_enter</item> - <item name="android:windowExitAnimation">@anim/find_dialog_exit</item> - </style> - <style name="TitleBar"> <item name="android:windowEnterAnimation">@anim/title_bar_enter</item> <item name="android:windowExitAnimation">@anim/title_bar_exit</item> |