In my case I will need to put several buttons in a recyrcleview how can I recognize which button was clicked or only the position of an item in the list?
<TableRow
android:id="@+id/tableRow1"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/nome"
android:layout_weight="1"
android:background="@drawable/cell_shape"
android:gravity="center"
android:padding="10dip" />
<Button
android:id="@+id/divisao"
android:layout_weight="1"
android:background="@drawable/cell_shape"
android:gravity="center" />
<Button
android:layout_weight="1"
android:background="@drawable/cell_shape"
android:gravity="center"
android:padding="10dip"
android:text="LANÇAR" />
</TableRow>