We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calendar should work properly in fragments just like activities
XML: <devs.mulham.horizontalcalendar.HorizontalCalendarView android:id="@+id/my_calendar_view" android:layout_width="match_parent" android:layout_height="wrap_content" />
Kotlin: private lateinit var horizontalCalendar: HorizontalCalendar horizontalCalendar = HorizontalCalendar.Builder(rootView, R.id.my_calendar_view) .range(startDate, endDate) .datesNumberOnScreen(5) .configure() .formatTopText("MMM") .formatMiddleText("dd") .formatBottomText("EEE") .showTopText(true) .selectorColor(ResourcesCompat.getColor(resources, R.color.new_mustard_dark, null)) .showBottomText(true) .textColor(Color.LTGRAY, ResourcesCompat.getColor(resources, R.color.black_1, null)) .colorTextMiddle( Color.LTGRAY, ResourcesCompat.getColor(resources, R.color.black_1, null) ) .end() .defaultSelectedDate(Calendar.getInstance()) .addEvents(null) .build()
I have tried horizontalCalendar.goToday() too but still there's an issues in fragments.
Android Version: 10,11 Horizontal-Calendar Version: 1.3.4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior / Goal
Steps to Reproduce the Problem (sample code if possible)
XML:
<devs.mulham.horizontalcalendar.HorizontalCalendarView
android:id="@+id/my_calendar_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
Kotlin:
private lateinit var horizontalCalendar: HorizontalCalendar
horizontalCalendar = HorizontalCalendar.Builder(rootView, R.id.my_calendar_view)
.range(startDate, endDate)
.datesNumberOnScreen(5)
.configure()
.formatTopText("MMM")
.formatMiddleText("dd")
.formatBottomText("EEE")
.showTopText(true)
.selectorColor(ResourcesCompat.getColor(resources, R.color.new_mustard_dark, null))
.showBottomText(true)
.textColor(Color.LTGRAY, ResourcesCompat.getColor(resources, R.color.black_1, null))
.colorTextMiddle(
Color.LTGRAY,
ResourcesCompat.getColor(resources, R.color.black_1, null)
)
.end()
.defaultSelectedDate(Calendar.getInstance())
.addEvents(null)
.build()
I have tried horizontalCalendar.goToday() too but still there's an issues in fragments.
Specifications
The text was updated successfully, but these errors were encountered: