ScrollCalendar icon indicating copy to clipboard operation
ScrollCalendar copied to clipboard

Modify element Radius

Open YonatanSegura97 opened this issue 4 years ago • 1 comments

How to modify radius of SelectedItemBeginningStyle SelectedItemEndStyle SelectedItemMiddleStyle SelectedItemStyle or what is the name of the property so that the background is closer to the text of the day. Thanks.

YonatanSegura97 avatar Jul 25 '20 05:07 YonatanSegura97

I would say the easiest way to achieve that is by setting your custom background in SelectedXXXStyle, more or less like that (you would have to repeat it for each type [start,middle,end,item]):

<style name="AppTheme">
         ...
        <item name="scrollCalendarStyleAttr">@style/ScrollCalendarStyle.MyStyle</item>
</style>

 <style name="ScrollCalendarStyle.MyStyle">
        ...
        <item name="selectedItemStyle">@style/SelectedItemStyle.MyStyle</item>
</style>

<style name="SelectedItemStyle.MyStyle">
        <item name="android:background">@drawable/smaller_circle</item>
</style>

rjuszczyk avatar Aug 24 '20 19:08 rjuszczyk