我是靠谱客的博主 优雅丝袜,最近开发中收集的这篇文章主要介绍NumberPicker的显示样式设置,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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>

最后

以上就是优雅丝袜为你收集整理的NumberPicker的显示样式设置的全部内容,希望文章能够帮你解决NumberPicker的显示样式设置所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部