Android : Using multiple layouts in single activity

on Sunday, October 26, 2014


I am currently working on Android project where I need to use multiple layouts in the same activity.


When the user clicks a button in the main layout, then I need to have another layout(which is completely different) with different content.


I tried looking up on the Internet and found that Fragments can be used, but as far as I understand Fragments are to be used when one needs only partial changes in the new layout, whereas I need to use a a completely different layout.


Also, I found include, but that is to use the same layout in multiple activities. So, not what I was looking for.


Does anyone have any idea as to how to accomplish this?


0 comments:

Post a Comment