material-calendarview
material-calendarview copied to clipboard
Can I change event dot position?
Current version event dot position shows under date number but I want to show Top-right of date.
- 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>
- In
decoratemethod of the EventDecorator, set it as background:view.setBackgroundDrawable(drawable)
That should show a dot on top right (end) of the date.