design - Best way to display multiple setContentView in Android -


i'm pretty new android apologize if question sounds stupid in way.

i'm trying create attendance application many classes 2 main ones student , courses.

i plan use tabs navigate student , courses being 2 tabs in tabhost.

the course page example list of courses in system options menu adding course bring add course screen (within course tab changing view).

so, question...

i plan set onclick options menu item call setcontentview display add new course layout instead of starting new activity showing new layout.

does sound sensible way this? if not better approach?

all course logic contained within course class , want of code contained within there without having create class/activity course list, adding course, viewing course etc.

i hope makes sense.

does sound sensible way this? if not better approach?

no, it's not sensible way so. should open new activity; that's android way. maybe trying imitate iphone tabs style don't open new windows or something.

if still want so, better use activitygroup (there tutorials out there), imho pain ass use.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -