NumberPicker的使用,如果我们想使用这个效果:
而不是这个效果:
一、最简单的方法是在AndroidManifest.xml 删除application标签中Android:theme属性
亲测可用,但一般在Application自定义Theme后不建议这样。
二、在AndroidManifest文件中直接给Actitivy配置theme属性:
<activity
android:name=".activity.MainActivity"
android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
亲测可用
三、也可以修改以下style文件:
1. values/style.xml:
<style name="AppBaseTheme" parent="@android:style/Theme.Light.NoTitleBar">
</style>
<style name="AppTheme" parent="AppBaseTheme">
</style>
2. values-v11/style.xml:
<style name="AppBaseTheme" parent="@android:style/Theme.Holo.NoActionBar">
</style>
3. values-v14/style.xml:
<style name="AppBaseTheme" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>