Android GingerBread 及之前的日历视图 (API<11)

2022-01-11 00:00:00 calendar android java android-view

我有一个包含日期和详细信息的 HTML 表格.我想在日历视图中显示它.我找到了内置的 API 11 CalendarView,但是当我使用 API 8(我需要它...)时,我无法对其进行充气.

I'm having an HTML table with dates and details. I want to show it in a calendar view. I've found the built-in API 11 CalendarView, but I can't inflate it when I'm using API 8 (which I need...)

PS.我不需要功能齐全的日历.我只是想显示这些信息.

PS. I don't need a fully functioning calendar. I just want to show this information.

有什么办法可以解决吗?

Is there any way to solve it?

推荐答案

正如你所说,在旧的 api 级别中无法显示日历,但你可以尝试一些开源项目:

As you mentioned, there is no way to show a calendar in older api levels, but you can try some open source projects:

  • android-calendar-view
  • CalendarView

相关文章