我想减小/更改微调器尺寸,其中包括:
- 微调器对象大小
- 显示的字体(大小和颜色)
- 当我打开微调器时显示的 ListView (其字体大小和颜色)
最佳答案
您可以在布局文件中更改这些设置。 hello-spinner 教程非常有用。
http://developer.android.com/guide/tutorials/views/hello-spinner.html
将新的 XML 文件添加到您的布局文件夹。
示例:spinnerLayout.xml
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/spinnerTarget"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="14pt"
android:textColor="#FF8B1500"
android:gravity="center"/>
将适配器资源更改为您的新布局文件:
adapter = ArrayAdapter.createFromResource(
this, R.array.sound, R.layout.spinnerLayout);
关于android - 如何更改/减小 Android 微调器大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2927012/