thellmund / Android-Week-View

Display highly customizable calendar views in your Android app
Apache License 2.0
188 stars 98 forks source link

Events not rendered #226

Closed RakeshPatil111 closed 3 years ago

RakeshPatil111 commented 3 years ago

Sometimes event is not rendered. This is my code val style = WeekViewEntity.Style.Builder() .setBackgroundColor(Color.parseColor(event.color)) .build()

    val startTime = Calendar.getInstance()
    val endTime = Calendar.getInstance()

    startTime.time = event.startDate
    endTime.time = event.endDate

    val entity = WeekViewEntity.Event.Builder(event)
            .setId(event.id)
            .setTitle(event.title)
            .setStartTime(startTime)
            .setEndTime(endTime)
            .setStyle(style)
            .build()

    return entity
thellmund commented 3 years ago

Please provide a sample repo that showcases your issue. The snippet of code you posted doesn't really help in determining what is going wrong.

RakeshPatil111 commented 3 years ago

Hi, I found debugged and find solution. Actually it was my mistake, events had an identical ids