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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -