Skip to content
New issue

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

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

Open
ChingSheng opened this issue Oct 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ChingSheng
Copy link

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
@ChingSheng ChingSheng added the bug Something isn't working label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant