如何自定义NumberPicker [英] How to customize the NumberPicker

查看:780
本文介绍了如何自定义NumberPicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现2内置NumberPickers:

I found 2 built-in NumberPickers:

在默认情况下,这是第一位的,但是当我添加安卓主题=@安卓风格/ Theme.NoTitleBar在AndroidManifest.xml中,它成为第二个。

By default, it's the first one, but when I add android:theme="@android:style/Theme.NoTitleBar" in AndroidManifest.xml, it becomes the second one.

我怎样才能把这个线(我需要它),仍然可以得到第一NumberPicker?

How can I put this line (I need it) and still get the first NumberPicker?

推荐答案

要设置非全息主题,让您得到非全息numberpicker。

you are setting the non holo theme so you get the non holo numberpicker.

看到这个作为参考,其基本上你问同样的事情

see this as reference, its basically the same thing you asked

删除XML中标题栏

这篇关于如何自定义NumberPicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆