如何从Android中的CalendarView选择日期范围? [英] How to select date range from CalendarView in android?

查看:809
本文介绍了如何从Android中的CalendarView选择日期范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从android的CalenderView中选择多个日期。谁能帮我做同样的事情。

I need to select more than once date from a CalenderView of android. Can any one help me to do the same.

示例!
让我们看一下附件图片。如果我们将图像中的日历视为Android的CalenderView,则需要选择从16日到20日的所有日期。

Example! Let's look attached image. If we consider the calender in image as CalenderView of android I need to select all date raging from 16th to 20th.

推荐答案

据我所知 CalendarView 仅支持选择单个日期。

As far as I know the CalendarView only supports selecting single dates.

我建议调用两次以获取开始和结束日期(对于结束日期,您可以调用 setMinDate() 之前以确保更大比开始日期)。

I would suggest calling it twice to get the start and end dates (for the end date, you could call setMinDate() beforehand to make sure it's greater than the start date).

这篇关于如何从Android中的CalendarView选择日期范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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