android - How to hide actionbar while scrolling down a webview? -
i developing android app. in app there 1 webview fetches data internet , show user. actionbar consuming screen space. want hide actionbar while user scroll down in webview. have searched everywhere on internet not find proper way this. using appcompat actionbar , min sdk 10.
you can use actionbar overlay mode. enable calling requestwindowfeature(window.feature_action_bar_overlay); before setcontentview(). , hide actionbar using getsupportactionbar().hide();
now scrolling event webview can follow answer in so
edit:
for hiding actionbar
getsupportactionbar().hide();   for showing
getsupportactionbar().show();      
Comments
Post a Comment