0

Is it possible to handle two or more resource layouts using one java class in android development? I want to create a multi-page signup page with one java class itself.

Atharva
  • 7
  • 3

1 Answers1

0

Simple Solution: Use Fragment under a Frame Layout in your main class.

Alter Solution: Use View Visibility GONE/VISIBLE to Load many views in one activity

Alter Solution: You Can Load Previous View data locally and load new content view by simply calling setContentView(R.layout."new layout");