material-calendarview icon indicating copy to clipboard operation
material-calendarview copied to clipboard

Can I change event dot position?

Open rb0071 opened this issue 6 years ago • 1 comments

Current version event dot position shows under date number but I want to show Top-right of date.

rb0071 avatar Dec 12 '19 03:12 rb0071

  1. Create a drawable to show a dot on the top right.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:gravity="top|end">
        <shape android:shape="oval">
            <solid android:color="@color/primaryColor" />
            <size
                android:width="5dp"
                android:height="5dp" />
        </shape>
    </item>
</layer-list>
  1. In decorate method of the EventDecorator, set it as background: view.setBackgroundDrawable(drawable)

That should show a dot on top right (end) of the date.

adityabhaskar avatar May 14 '20 16:05 adityabhaskar