Skip to content
New issue

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

Wrong current date in fragment #134

Open
muneebahmed97 opened this issue Feb 12, 2021 · 0 comments
Open

Wrong current date in fragment #134

muneebahmed97 opened this issue Feb 12, 2021 · 0 comments

Comments

@muneebahmed97
Copy link

muneebahmed97 commented Feb 12, 2021

yes, I'm using current version

Expected Behavior / Goal

Calendar should work properly in fragments just like activities

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

  • Android Version: 10,11
  • Horizontal-Calendar Version: 1.3.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant