带微调器的 TimePicker? [英] TimePicker with Spinners?
本文介绍了带微调器的 TimePicker?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试构建一个 TimePickerDialog 但不幸的是,出现的时间选择器使用起来非常麻烦:
I'm trying to build a TimePickerDialog but unfortunately the Time Picker that comes up is extremely cumbersome to Use :
有没有什么方法可以像 Android 使用的旧时间选择器一样构建一个时间选择器,如下所示:
Is there any way to build a timepicker like the old ones that Android use to have like below :
我的代码如下:
ButtonTime.Click += delegate
{
ShowTimePickerDialog();
};
void ShowTimePickerDialog()
{
var dialog = new TimePickerDialogFragment(this, hour, minute, this);
dialog.Show(FragmentManager, null);
}
推荐答案
我会说使用 Holo 主题.我参考以下 链接 stackoverflow 上的链接,您可能会发现它很有用.
I would say use the Holo theme. I refer to following link on stackoverflow which you might find usefull.
这篇关于带微调器的 TimePicker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文