My goal is to display a list where each element (iteration) is displayed with two buttons:

The buttons would change a variable in the specific element of the list.
My problem: How do I create this gui in Android Studio?
Copyright © 2021 Jogjafile Inc.
Here I implement a simple example of RecyclerView in android (java). You can change it as you need:
Add item.xml in your layout folder, and write these lines in it:
this is based on your sample image. this layout contains all views in a single row of list. if you want more buttons or texts in each row, you must add them in this file.
You always need an Adapter class for RecyclerViews. So, add MyAdapter.java class to your project as below:
The titles list is list of Strings shown on items. You create this list and send it to the MyAdapter class from MainActivity. all views in single item are find in ItemVH class, and you can work with these views in onBindViewHolder function.
In activity_main.xml add a RecyclerView:
In MainActivity.java add these lines in onCreate:
Result: