Android Question how to make app with more than one function/page

alfian01

Member
Licensed User
Longtime User
Good morning,
How to make appliaction with more one function/page, if there is menu (for exampe using slidingmenuwrapper), do we use one activity with many layout or we use many acitivity? can i get example for this case.
Thank u.
@Erel or somebody
 
Last edited:

alfian01

Member
Licensed User
Longtime User
but if we use more than one activity , when using slidingmenuwrapper, page trantition will shown, but if we make in one activity for 3 or 4 page, it will make the code very long.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
All my apps and games use just 1 activity and have (code generated) panels that are shown/hidden when needed.

For me this was the easiest to work with and also a way to get rid of activity side effects (slow creation, unwanted animations etc).

For your long code problem you can always use classes to seperate code parts.
 
Upvote 0
Top