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
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
In Case that you have instance of DatePicker you must write only this in your method `
Use the code of Raval. But to run it below Android version 11, do following:
Now you have it working on all Android versions (Above API > 3)
You can use
yourDatepicker.setCalendarViewShown(false);
This method works in
Api >= 11
.To avoid the Calendar in your DatePicker for later APIs
Add
instead of
in your layout XML for the DatePicker widget.