dmitry-zaitsev/AndroidSideMenu

Where to locate the main activity layouts?

Closed this issue · 4 comments

Hi,

I'm pretty new to android platform. So, just forgive me for my dumbness. As I have seen, the left menu and the main view is located just in a layout. I just wanna ask, should I put the whole my new views to that layout and hide/show them on left menu taps? (I guess that's not the way) Or there is another way that I do not know? I want to split all my views in a different layout xml and different activity. What should I do?

Thanks in advance.

Basically, process of "hiding/showing" is performed by library itself - you shouldn't care.

About different layouts - it's definitely better to use separate xml for each part. Use Fragments to accomplish this task.

So, you mean for an item in menu that will open a new view, I should have a fragment instead of an activity?

Yes, that would be much easier for you to control logic of your app.

On Mon, Jun 10, 2013 at 6:25 PM, yapiskan notifications@github.com wrote:

So, you mean for an item in menu that will open a new view, I should have
a fragment instead of an activity?


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-19201596
.

OK, thank you.