我是靠谱客的博主 迅速鸡,这篇文章主要介绍NumberPicker 有时显示为+ - 号,有时显示滑动选择的问题,现在分享给大家,希望可以做个参考。

在manifest中写了android:theme="@style/AppTheme", 显示为+ - 号,

在manifest中写了android:theme="@android:style/Theme.NoTitleBar", 显示为滑动选择,

怎么能在去掉标题栏的状况下,显示为滑动选择?


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>



最后

以上就是迅速鸡最近收集整理的关于NumberPicker 有时显示为+ - 号,有时显示滑动选择的问题的全部内容,更多相关NumberPicker内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(144)

评论列表共有 0 条评论

立即
投稿
返回
顶部