-1

I have an Android app. I have put a WebView inside it and then it loads a website which is HTML5 based.

My problem is, The website itself has a menu on top right corner. And my native android app also have the title bar and menu on top right corner. I can hide the native title bar, but that way user will not be able to do any native app operations.. What will be the best solution for this?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Sam
  • 2,972
  • 6
  • 34
  • 62

2 Answers2

2

You can use javascript bridge and from your webapp menu invoke native methods, then having only one menu.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134
1

See the answer to this question. You can initially hide the ActionBar and then register a listener on the WebView that listens for swipes down showing the ActionBar for a period of time before hiding it again.

aliaksei
  • 714
  • 1
  • 9
  • 23