1

After ionic and angular i'm trying to develop apps in native java. After setting up a toolbar and a drawer-menu i wasn't able to make it work:

First problem: How can i use myitems in my drawer to show different views (in separate .xml files) in the main view.

Second problem: How can i create a view, similar to a full-height snackbar, whitin a text input field?

thank you for your time.

Davide Nale
  • 181
  • 1
  • 5
  • 19

1 Answers1

1
  1. You should use fragment replacement. So in your main activity layout file create Frame Layout and onNavigationDrawerClick change fragments. Take a look at this as example.

2.I recommend you to use Bottom Sheet in it. Sample

If you need some code recommendations comment here. Good luck

Community
  • 1
  • 1
Anton Kazakov
  • 2,740
  • 3
  • 23
  • 34