A alfian01 Member Licensed User Longtime User Jan 31, 2019 #1 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: Jan 31, 2019
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
josejad Expert Licensed User Longtime User Jan 31, 2019 #2 Take a look this thread and test the samples https://www.b4x.com/android/forum/threads/different-examples-with-2-layouts.8416/#post-47102 Upvote 0
Take a look this thread and test the samples https://www.b4x.com/android/forum/threads/different-examples-with-2-layouts.8416/#post-47102
A alfian01 Member Licensed User Longtime User Jan 31, 2019 #3 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
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.
S sorex Expert Licensed User Longtime User Jan 31, 2019 #4 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
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.