From 67f0a56ddf18884a27d353189ffb6e77938a6d55 Mon Sep 17 00:00:00 2001 From: Grace Kloba Date: Mon, 28 Sep 2009 21:24:51 -0700 Subject: Enable fading scrollbar for the Browser Fix http://b/issue?id=2151115 --- res/layout/browser_subwindow.xml | 2 ++ src/com/android/browser/TabControl.java | 2 ++ 2 files changed, 4 insertions(+) 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 @@ 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); -- cgit v1.1