this question relates to this one: android.R.simple_spinner_item
Since I can't comment because of low reputation, I have an additional question:
If I copy&paste the android.R.simple_spinner_item layout, I get an error on
android:layout_height="?android:attr/dropdownListPreferredItemHeight"
saying "error: Error: Attribute is not public. (at 'layout_height' with value '?android:attr/dropdownListPreferredItemHeight')."
I just added android:gravity="right"
to get the spinner_item alignment to the right side.
How can I solve this error?
android:layout_height="wrap_content"
. You Cannot usedropdownListPreferredItemHeight
as its not public. – Lully