Hello,
I’ve tried to do the back button challenge, and have it working, but I’d like to change the layout of my button so that the back arrow is to the left of the text, not to the right. I’ve tried googling around on how to do this, but can’t seem to find anything? Any ideas? I’ve attached a code snippet and a screenshot describing what I’m talking about here.
Here’s the xml for my back and next buttons:
<Button
android:id="@+id/back_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawablePadding="4dp"
android:drawableRight="@drawable/arrow_left"
android:text="@string/back_button" />
<Button
android:id="@+id/next_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawablePadding="4dp"
android:drawableRight="@drawable/arrow_right"
android:text="@string/next_button" />
</TableRow>