Android Material Design Bottom Bar and Webview -


i worked through tutorial (here) create bottom bar. in tutorial explain how change text of label, when changing tab. want have webview changes it's content when changing tab.

do know way example given in tutorial?

thanks awnser!

here piece of code runs when click on button on bottom bar:

    bottombar.setitemsfrommenu(r.menu.three_buttons_menu, new onmenutabselectedlistener() {         @override         public void onmenuitemselected(int itemid) {             switch (itemid) {                 case r.id.recent_item:                     snackbar.make(coordinatorlayout, "recent item selected", snackbar.length_long).show();                     break;                 case r.id.favorite_item:                     snackbar.make(coordinatorlayout, "favorite item selected", snackbar.length_long).show();                     break;                 case r.id.location_item:                     snackbar.make(coordinatorlayout, "location item selected", snackbar.length_long).show();                     break;             }         }     }); 

so change snackbar.make calls code change content of webview.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -