aj10
aj10

Reputation: 1043

How to repeats a layout?

My layout contains a spinner and an editText.I want this spinner and editText fields repeats 1 or 2 times in an activity based on some condition.Is it possible?

Upvotes: 0

Views: 62

Answers (1)

Mojo Risin
Mojo Risin

Reputation: 8142

You can use the <include> tag. Here is good article about it. And if you want to hide them a truntime just change the visibility tag

Upvotes: 1

Related Questions