Reputation: 1043
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
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