Is it possible to have two different layouts for different cases in the same activity or do I have to use intent to call another activity with a di
intent
activity
Yes its possible. You can use as many layouts as possible for a single activity but obviously not simultaneously. You can use something like:
if (Case_A) setContentView(R.layout.layout1); else if (Case_B) setContentView(R.layout.layout2);
and so on...