Best Way To Display Multiple Setcontentview In Android
I'm pretty new to Android so I apologize if this question sounds stupid in any way. I'm trying to create an attendance application with many classes but the 2 main ones will be Stu
Solution 1:
Does this sound like a sensible way to do this? If not what would be a better approach?
No, it's not a sensible way to do so. You should open the new activity; that's the Android way. Maybe you are trying to imitate the iPhone tabs style which don't open new windows or something.
If you still want to do so, you better use ActivityGroup
(there are tutorials out there), which IMHO is a pain the ass to use.
Solution 2:
It is certainly not a sensible way to do stuffs.
You can however use a ViewFlipper by which you can change the screen layouts. This way you can stay in the same class and change your screen design.
http://developer.android.com/reference/android/widget/ViewFlipper.html
Post a Comment for "Best Way To Display Multiple Setcontentview In Android"