使用简单的旋转器。当我滚动微调器时,微调器下拉列表周围的阴影开始颜色变深。
我设法解决了这个问题,但是
I will appreciate if someone could explain me why was this happening?
<Spinner
android:id="@id/drop_list_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:background="@android:color/transparent"
android:dropDownSelector="@android:drawable/list_selector_background"
android:dropDownWidth="wrap_content"
android:minHeight="@dimen/min_header_height"
android:popupBackground="#FFFFFF" />
最佳答案
已修复:Api 低于 21
style="@style/Widget.AppCompat.Spinner.DropDown"
如果使用 API 21 及以上版本
android:popupTheme="@style/Widget.AppCompat.Spinner.DropDown"
关于android - 更改微调器背景会生成深色边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35721120/