问题:使用resycylerVIew时 下拉框的内容显示不完整,效果如下
解决方案:将Spinner的高度设置为 match_parent, 而不是wrap_content
android:layout_height="match_parent"
完整代码
<Spinner
android:id="@+id/test"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:textSize="20dp"
android:textAlignment="center"/>
运行效果