I am creating a dynamic view which contains TextView and a Spinner. I' ve an array of items which has to be shown in the spinner. Now, for an instance, SpinnerA shows item1 from the list so I don't want SpinnerB to show item1 for the selection. Similarly, if SpinnerB has selected item3 then SpinnerA should not show item3 for the selection. Finally precisely and concisely what I want is, the item already selected by one spinner should not be visible for selection by any other spinner.
Edit: I am receiving a JSON response which is having a count of products. On that basis, I'll be creating dynamic views containing spinner and auto-populating the values of product into the spinner. Also on click of adding more button, I will be facilitated by adding more dynamic views. So now the scenario is the preselected value in one spinner should be visible for selection in any other spinner. I've mentioned an image URL of my layout below.the layout link Kindly, help me with the logic.