焦点在日历组件中

发布于 2024-11-19 01:41:30 字数 193 浏览 4 评论 0原文

我应该怎么做才能关注日历组件中的特定日期?

我这里不是谈论指标。 calendar.setCurrentDate()calendar.setSelectedDate() 获取日期指示符,但焦点始终位于第一个星期日的日期。我在网上看到日历尚未提供此功能。有人知道吗?有什么解决办法吗?

What should I do to focus on the specific date in calendar component?

I am not talking about indicator here. calendar.setCurrentDate() and calendar.setSelectedDate() gets the indicator on the date, but focus is always on date of 1st sunday. I have read on net that this functionality is not provided by calendar yet. Do any one have any idea? Any solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油焖大侠 2024-11-26 01:41:30

您可以派生日历并重写updateButtonDayDate(Button dayButton, int currentMonth, int day)

当特定日期符合您的要求时,您可以在此处执行 requestFocus() 调用。

You can derive calendar and override updateButtonDayDate(Button dayButton, int currentMonth, int day).

Here you can perform a requestFocus() invocation when the specific date matches your requirement.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文