Android spinner dialogMode 样式

标签 android xml spinner

我有微调器,但我想使用对话模式(选择项目更容易)。有什么方法可以更改对话框样式吗?又白又无聊。

顺便说一句。我想使用 XML 更改其样式

enter image description here

最佳答案

Spinner
        android:layout_width="90dp"
        android:layout_height="wrap_content"
        android:id="@+id/spinnerHour"
        android:spinnerMode="dialog"
        style="@style/Widget.AppCompat.Spinner.Underlined" />

为对话框使用 spinnermode 参数并使用 style 参数选择不同的样式。 您还可以为它们创建自己的样式。

关于Android spinner dialogMode 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20304112/

相关文章:

xml - 我如何从 Google Maps API 获取行车时间?

android - 在 android 中选择时将焦点设置在微调器上

android - 在android中使用带有listview的contextmenu

android - 在 android 中记录通话为什么这不起作用

android - 如何使 ListView 增长而不是滚动?

android - 调试控制台 : Error: ADB exited with exit code 1 Performing Streamed Install. .. F

java - JAXB 将命名空间添加到父元素而不是包含的子元素

java - 包含的 ListView 不会填充

ios - 在 Storyboard 中为 TableView 实现一个事件指示器

android - 如何在运行时在微调器中添加更多项目