【问题标题】:Customize and create a spinner in android studio在 android studio 中自定义和创建微调器
【发布时间】:2021-11-01 00:27:05
【问题描述】:

愿你平安。你好。如何在这个三星应用程序中添加一个微调器?非常感谢您,愿上帝赐予您丰厚的回报enter image description here

【问题讨论】:

  • 您在寻找CircularProgressIndicator吗?
  • 不清楚您想要解决哪种语言。颤振还是Java?为什么 IDE 很重要?请澄清你的问题。
  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: java flutter android-studio dart spinner


【解决方案1】:
<string-array name="array_name">
<item>Array Item 1</item>
<item>Array Item 2</item>
<item>Array Item 3</item>
</string-array>

在您的布局中:

<Spinner 
    android:id="@+id/spinner"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:drawSelectorOnTop="true"
    android:entries="@array/array_name"
/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-13
    • 1970-01-01
    • 2014-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多