I'm developing an application for android on accessibility and need to dynamically load the images of the buttons according to a spinner chosen. Attached is a photo application. Most of the photos have a spinner empty. When it is clicked, a list would appear and so were chosen something the spinner, the button images would change. Example: Spinner - Bathroom (Images of possibilities this place) Spinner - Kitchen (Images of possibilities this place).
OBS:I chose not to use imagebutton to be easier to manipulate buttons.!
Code buttons:
<Button
android:id="@+id/pic1"
android:layout_column="2"
android:layout_columnSpan="3"
android:layout_gravity="left"
android:layout_row="2"
android:drawableBottom="@drawable/pic1"
android:text="@string/pic1" />