在Android 4.0的使用日期选择何时以及above..how避免日历视图 [英] when using datepicker in android 4.0 and above..how to avoid the calender view

查看:166
本文介绍了在Android 4.0的使用日期选择何时以及above..how避免日历视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了在Android 2.2的一个项目,该项目包含一个日期选择器,并根据屏幕的大小,他为它设置的属性,但是当我在Android 4.0的安装它...日期选择器视图包含一个日历视图... 。什么做避免与Android 4.0的日期选择器沿日历视图......下面是日期选取器的图像在2.2和4.1

i have done a project in android 2.2 which contains a date picker and set the properties for it according to he size of screen but when i installed it in android 4.0...the date picker view includes a calender view ....what to do to avoid the calender view along with datepicker in android 4.0...below are the images of date picker in 2.2 and 4.1

推荐答案

您可以使用 yourDatepicker.setCalendarViewShown(假);

本方法适用于 API方式> = 11

这篇关于在Android 4.0的使用日期选择何时以及above..how避免日历视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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