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

development - WeekendDays not working as expected #30

Closed
JonatanSalas opened this issue Jan 21, 2017 · 1 comment
Closed

development - WeekendDays not working as expected #30

JonatanSalas opened this issue Jan 21, 2017 · 1 comment

Comments

@JonatanSalas
Copy link
Member

When you set, weekendDays as following, it works correctly, painting SAT|SUN and also painting the number of days affected.

<io.blackbox_vision.materialcalendarview.view.CalendarView
      android:id="@+id/calendar_view"
      android:layout_marginTop="56dp"
      android:layout_marginEnd="2dp"
      android:layout_marginLeft="2dp"
      android:layout_marginRight="2dp"
      android:layout_marginStart="2dp"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:calendarWeekendDays="saturday|sunday">
</io.blackbox_vision.materialcalendarview.view.CalendarView>

But, if you try to do the following:

<io.blackbox_vision.materialcalendarview.view.CalendarView
      android:id="@+id/calendar_view"
      android:layout_marginTop="56dp"
      android:layout_marginEnd="2dp"
      android:layout_marginLeft="2dp"
      android:layout_marginRight="2dp"
      android:layout_marginStart="2dp"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:calendarWeekendDays="sunday">
</io.blackbox_vision.materialcalendarview.view.CalendarView>

The problem here is that the SAT isn't painted anymore, but the number of days under SAT, keeps painted. This behavior is not correctly.

@JonatanSalas
Copy link
Member Author

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant