I'm trying to set attributes to a spinner on my android app and one of the attributes in
textAlignment = "right" (the problem being I've a spinner that
layout_width="match_parent" so there's a lot a space and I'd like to have it to the right) but this is only supported in API 17 and up whereas I want to make an app for API 16 - Is there a work-around?
My attributes are:
<Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="right" android:textAlignment="gravity" android:id="@+id/MainSpinner" tools:listitem="@layout/support_simple_spinner_dropdown_item"/>
The current linearLayout looks like this:
And I want it to look like this: