-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,352
  • 21
  • 80
  • 110
Sam
  • 2,750
  • 3
  • 29
  • 55

2 Answers2

2

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

Diego Torres Milano
  • 61,192
  • 8
  • 106
  • 129
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
  • 686
  • 1
  • 9
  • 22