hai i need to show the date picker dialog with month and year alone. how to disable that part alone. Or i need to create the cust开发者_Python百科om date picker
Unfortunately, the dialog is not configurable. Neither is the underlying DatePicker widget, AFAIK. You may be able to subclass DatePicker and have it use a different layout, or clone the DatePicker source code to create your own YearAndMonthPicker. Then, you can wrap that in an AlertDialog.
you have to custom your own date picker , or another bad solution is just to resize it manually till the date part is not shown anymore !
精彩评论