summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2009-09-28 21:24:51 -0700
committerGrace Kloba <klobag@google.com>2009-09-28 21:24:51 -0700
commit67f0a56ddf18884a27d353189ffb6e77938a6d55 (patch)
treea2eb3ba06c4fd785eacefa13ac3374742354b723
parent65f4a3ce9e5c4a5227bbcbb995e5e15f1f85d3d7 (diff)
downloadpackages_apps_Browser-67f0a56ddf18884a27d353189ffb6e77938a6d55.zip
packages_apps_Browser-67f0a56ddf18884a27d353189ffb6e77938a6d55.tar.gz
packages_apps_Browser-67f0a56ddf18884a27d353189ffb6e77938a6d55.tar.bz2
Enable fading scrollbar for the Browser
Fix http://b/issue?id=2151115
-rw-r--r--res/layout/browser_subwindow.xml2
-rw-r--r--src/com/android/browser/TabControl.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/res/layout/browser_subwindow.xml b/res/layout/browser_subwindow.xml
index 5b00bf7..0eb9e72 100644
--- a/res/layout/browser_subwindow.xml
+++ b/res/layout/browser_subwindow.xml
@@ -30,6 +30,8 @@
<WebView android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
+ android:fadeScrollbars="true"
+ android:scrollbarStyle="outsideOverlay"
android:layout_weight="1" />
</LinearLayout>
</FrameLayout>
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java
index 3de60a3..2f15a9c 100644
--- a/src/com/android/browser/TabControl.java
+++ b/src/com/android/browser/TabControl.java
@@ -1022,6 +1022,8 @@ class TabControl {
private WebView createNewWebView() {
// Create a new WebView
WebView w = new WebView(mActivity);
+ w.setScrollbarFadingEnabled(true);
+ w.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);
w.setMapTrackballToArrowKeys(false); // use trackball directly
// Enable the built-in zoom
w.getSettings().setBuiltInZoomControls(true);