This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Solution based on Sevastyan answer on StackOverflow | |
https://stackoverflow.com/questions/32949971/how-can-i-make-sticky-headers-in-recyclerview-without-external-lib/44327350#44327350 | |
*/ | |
import android.graphics.Canvas | |
import android.graphics.Rect | |
import android.view.MotionEvent | |
import android.view.View | |
import android.view.ViewGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OptIn(ExperimentalPagerApi::class) | |
@Composable | |
fun Calendar( | |
startDate: LocalDate, | |
months: List<YearMonth>, | |
selectedDates: Set<LocalDate>, | |
focusedDate: LocalDate?, | |
isNewDateSelectionEnabled: Boolean, | |
onDateClick: (LocalDate) -> Unit, | |
horizontalPadding: Dp, |