I am doing a small Android game where the user needs to assign two players to two teams. My plan is to use a recycler view which lists all existing players (which are stored in a local database).
The items in the recycler view will be possible to reorder. The first two items in the recycler view will be assigned to team A and the next two items will be assigned to team B. The remaining players will not be considered in a team. The implementation of this logic will be fine, there are also enough examples in the web.
But in order to indicate this logic to the user, I would like to offer him some kind of boxes which indidcate the teams. Like in the following wireframe:
Does anybody have an advice how this should be done? Should I put a View above the recycler view? Alternatively, I am also open for alternative approaches to assign exactly two players (uniquely) to two teams.
CodePudding user response:
You need to place these Divider backgrounds below recyclerview, calculate heights of these items and place it accordingly.
CodePudding user response:
If you want use RecyclerView, you need to include divider in item view, or make divider as item itself.