View
 

Hide the scrollbar in Android

Page history last edited by Micah Lee 5 mos ago

In Eclipse open DroidGap.java. Find the function public void onCreate(Bundle savedInstanceState). Look for the line that created the Android WebView:

 

appView = (WebView) findViewById(R.id.appView);

 

Beneath that, add these two lines:

 

appView.setVerticalScrollBarEnabled(false);
appView.setHorizontalScrollBarEnabled(false);

 

The scroll bars will no longer appear.

Comments (0)

You don't have permission to comment on this page.