I am new to Android (and Java), please help me with this problem.
I am trying to hide the week numbers in the CalendarView in the DatePicker, found a Boolean set to true called:
mShowWeekNumber
inside
mCalendarView
in the DatePicker, but how can I set this value to false....??
Any help will be appreciated.
You can set it in the layout file.
By configuring the CalendarView to android:showWeekNumber="false":
<CalendarView
android:layout_width="match_parent"
android:layout_height="301dp"
android:id="@+id/calendarView"
android:layout_gravity="center_horizontal"
android:showWeekNumber="false"/>
[This text of this answer was originally written by Vikram]
Set mCalendarView.setShowWeekNumber(false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With