Skip to content

Set single event spannableString for customize ui style but apply to all event chips #301

@ChingSheng

Description

@ChingSheng

Describe the bug
As title. In previous version, WeekViewEntity.Style.Builder() has setTextStrikeThrough() to customize individual event chip style. As below code.

            @PublicApi
            @Deprecated("Use a SpannableString for the title or location instead.")
            fun setTextStrikeThrough(strikeThrough: Boolean): Builder {
                style.isTextStrikeThrough = strikeThrough
                return this
            }

However when I try using SpannableString for individual WeekViewEntiry. Once SpannableString are set to one WeekViewEntity, other WeekViewEntity (event chip) also apply this SpannableString.

To Reproduce
Steps to reproduce the behavior:

  1. Scroll to date which has set StrikeThrough SpannableString WeekViewEntiry
  2. Browse other events
  3. Event are all apply this SpannableString

Expected behavior
Each WeekViewEntiry has individual SpannableString setting, not affect to other events

Screenshots

2023-10-05.10.44.46.mov

My code for additional information
image

Additional context

  • Android version: TargetSdkVersion 31
  • WeekView version: 5.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions