对于我的应用程序,我必须从用户那里得到一个日期。
我已经尝试了一个带有输入类型的简单EditText ,但是对于必须输入'/'字符的用户来说这不是很方便。
我也尝试了DatePicker组件。 它比EditText更方便,但与EditText等其他组件相比,它相当大。
有没有最好的方式让用户获得约会?
For my application, I have to get a date from the user.
I have try a simple EditText with the input type to date, but it's not very convenient for the user who has to enter himself the '/' character.
I have also tried the DatePicker component. It's more convenient than the EditText but it is big compared to others components like EditText.
Is there a best way for a user to get a date ?
最满意答案
有一个显示日期的按钮,单击时显示DatePickerDialog 。
Have a button that displays the date and when clicked shows a DatePickerDialog.
更多推荐
发布评论