Is there a way to call setContentView(id) multiple times with different id during one Activity to render different views or do I absolutely have to start a new Activity?
+1
A:
No, you can't call it multiple times easily. You either need to entirely remove all views and then inflate the new layout, or use a ViewFlipper
(or FrameLayout
) to switch between different views.
On a side note, this question has been asked before, although I couldn't immediately find it.
EboMike
2010-10-25 21:00:20