V
V
Vadym2017-10-10 12:44:31
Android
Vadym, 2017-10-10 12:44:31

How can Spinner(s) add an underline so that the text of the list is not cut off?

There is a drawing:
59dc93f609fc9609636771.jpeg
My code:
(TextView
android:layout_marginBottom="@dimen/space8"
android:layout_marginTop="@dimen/space8"
android:text="@string/category"
Spinner
style="@style/Widget.AppCompat.Spinner .Underlined"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/space24")
With this layout, the drop-down text is cut off by the underline.
59dc95ceabe74787315971.png
When I make the spinner height greater than 48dp,
Is there a solution how to implement underline so that the text is not cut off?
More specifically: I'm having difficulty with the style style="@style/Widget.AppCompat.Spinner.Underlined", the line appears under the icon itself

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question