I want to create a database where I get some data like name, two boolean represented by a toggle button and a checklist and list everything in a scroll view like in figure 1. Also I want to add a "delete" and "update" button in the same entry of the scrollview.
I've seen you can put a horizontal LinearLayout in the vertical Linearlayour which is created in the
You only need to add another LinearLayout as a container for every list item:
- ScrollView - LinearLayout (vertical) -> List container - LinearLayout (vertical) -> Item container - LinearLayout (horizontal) ...some elements.... - End of LinearLayout (horizontal) - LinearLayout (horizontal) ...more elements.... - End of LinearLayout (horizontal) - End of LinearLayout (vertical) -> Item container ...More item containers... - End of LinearLayout (vertical) -> List container - End of ScrollView
This is not the exact layout as in your image but you should solve it following this pattern.
Despite this, as others said in their comments this can be achieved in a more efficient way using a ListView or better a RecyclerView.
I can't show you a real example right now, I will do it later if you need.