Make Dropdown Label smaller

会有一股神秘感。 提交于 2020-01-05 06:00:34

问题


I would like to figure out if it is possible to make Dropdown (Arrow) Logo of a Spinner smaller. See my two screenshots please:

The first Screenshot shows that Dropdown label is pretty big. The second shows what I really want to accomplish. It is not about the Dropdown, I want to have the ability to have more text when a item is already selected.

This is what I use as code:

<android.support.v7.widget.AppCompatSpinner
                    android:id="@+id/heroSpinner"

                    android:layout_width="match_parent"
                    android:layout_height="match_parent"


                    android:textSize="15sp"
                    android:autoSizeTextType="uniform"
                    android:autoSizeMinTextSize="10sp"
                    android:autoSizeMaxTextSize="15sp"

                    android:dropDownWidth="match_parent"
                    android:popupBackground="#8A8A8A"
                    android:spinnerMode="dropdown" />

Can edit my mainActivity and Adapter if needed.

Can someone help me please? :)

来源:https://stackoverflow.com/questions/52834891/make-dropdown-label-smaller

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!