我有微调器,但我想使用对话模式(选择项目更容易)。有什么方法可以更改对话框样式吗?又白又无聊。顺便说一句。我想使用XML更改其样式 最佳答案 Spinnerandroid:layout_width="90dp"android:layout_height="wrap_content"android:id="@+id/spinnerHour"android:spinnerMode="dialog"style="@style/Widget.AppCompat.Spinner.Underlined"/>为对话框使用spinnermode参数