0

I created a layout which has a button. I want to prevent from duplicating the button for each row while I'm using the layout to inflate. How should I do that?

Thanks,

Alireza

Alex
  • 1,623
  • 1
  • 24
  • 48

1 Answers1

1

I'm not sure what you mean by "inflate" but the button is in the schema of the layout so that has to be taken out of the scope of that tag. Then, you can define another section (container) and have one button per container. If you add more details to your question, I'll elaborate

LearnByReading
  • 1,813
  • 4
  • 21
  • 43
  • While using `LayoutInflater` to create custom `ListView`, the used layout will be repeated for each row; Then if a button exists on that layout, it will be repeated for each row too. I want to filter to which views must be repeated for each row. – Alex Mar 21 '15 at 13:28