Sumit Yadav
Sumit Yadav

Reputation: 97

how to make a layout which change?

want this kind of layout which change according to the button pressed(multiple display in one activity). dont want a navigation bar which is for all activities.

if you are not understanding what i am saying: what i am doing: making a set of questions(mcq type) user give ans to each question and submit it(submit button is on the last question)

Upvotes: 0

Views: 53

Answers (3)

Sangeeth Siddhu
Sangeeth Siddhu

Reputation: 95

Use Fragments for this kind of Functionality.Check this link..it would be helpful for your Requirement. How to replace a Fragment on button click of that fragment??

Upvotes: 0

Nimisha V
Nimisha V

Reputation: 469

I think this will help you. Use fragment to change layout dynamically.

Upvotes: 0

Sunisha Guptan
Sunisha Guptan

Reputation: 1605

In this example creating a tab layout to show different screen for each tab.

Link 1

Link2

Upvotes: 1

Related Questions