日期和时间选择器在一个视图 [英] Date and time picker in one view

查看:190
本文介绍了日期和时间选择器在一个视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我们是否可以在一个视图中同时实现的日期和时间选择器...

I wanted to know whether we can implement both date and time picker in one view...

在我们的iPhone应用程序,你可以选择通过一个视图日期和时间。但在Android中,我们有日期选取器和时间选择器单独使用。有没有通过,我可以从一个视图获取日期和时间值的任何方法?

In our iPhone app you can pick both date and time through one view. But in Android we have date picker and time picker used separately. Is there any method by which I can get values of both date and time from one view?

推荐答案

有没有内置在实现这两个日期和时间选择器部件。但是,你可以创建你自己定制的视图,也许是结合现有的的DatePicker TimePicker

There is no built in widget that implements both a date and time picker. However, you can create your own custom view for that, perhaps combining the existing DatePicker and TimePicker.

这篇关于日期和时间选择器在一个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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