Davide Nale
Davide Nale

Reputation: 179

Android app: 2 problems with layout

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.

Upvotes: 1

Views: 34

Answers (1)

Anton Kazakov
Anton Kazakov

Reputation: 2774

  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

Upvotes: 1

Related Questions