S
S
Sergey2019-02-26 19:07:08
Java
Sergey, 2019-02-26 19:07:08

How to turn off WebView page reload on android menu tab change?

Hello! The application has a BottomNavigationView menu. It is implemented through fragments. In the first tab of the menu (Home) the WebView page, but when you change, for example, the tabs (Settings) and back, the page with the WebView is reloaded. How to prevent this reboot?
5c75641876caa765598564.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2019-02-26
@402d

Since the reload is due to a re-creation, the question should be " how to save the state of the webview ".
www.lucazanini.eu/en/2013/android/how-to-save-the-...

D
Denis Zagaevsky, 2019-02-26
@zagayevskiy

Just don't do replace. Do add.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question