[Solved]How to change the browser scrollbar background color

Put your problem here if it does not fit any of the other categories.

[Solved]How to change the browser scrollbar background color

Postby madshiva » Fri Dec 18, 2009 10:16 am

Dear all !

I have a little problem, I have one application that open only a web page. With Intent, but not the WebView because I would like to use Gears for store the application when I'm not connected to internet.

This is working great, but my problem come with the "browser" part, when I create a web page, the colour of the background of the scrollbar is white I would like to change this.

Image

I have searched, but I could not find how to set the colour of the scrollbar for the browser.

In the sample RunningMan that Google provide, he use this for the css : that hide the scrollbar, but that don't change my problem.

html {
overflow-y: hidden;
}


Thanks for any help or hint.



Edit:

I have found the solution :

mWebView.setBackgroundColor(0);
mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);


Best Regards
madshiva
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Dec 18, 2009 10:01 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 29 guests