We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried add the text to dates with JsonObject, but the text is empty.
class EventDecorator(jsonTotal: JSONObject, dates: HashSet<String>) : DayViewDecorator { val totalData = jsonTotal val dates: HashSet<String> = dates var dDay = "" var label = "" override fun shouldDecorate(day: CalendarDay): Boolean { dDay = getDay(day.year, day.month, day.day) label = totalData.getString(dDay) return dates.contains(dDay) } override fun decorate(view: DayViewFacade) { view.addSpan(DotSpan(5f, Color.RED)) // view.addSpan(AddTextToDates(label)) } fun getDay(year: Int, month: Int, day: Int): String { val dDay = "$year-" + String.format( "%02d", month + 1 ) + "-" + String.format("%02d", day) return dDay } }
The text was updated successfully, but these errors were encountered:
I think you can use this guide to do it, but I don't know how to increase height of row to display this text. Maybe it will be overlap. https://stackoverflow.com/questions/61008523/add-text-to-dates-in-material-calendarview
Sorry, something went wrong.
No branches or pull requests
I tried add the text to dates with JsonObject, but the text is empty.
The text was updated successfully, but these errors were encountered: