Questions tagged [calendarview]

CalendarView is a calendar widget for displaying and selecting dates.

CalendarView is a widget for displaying and selecting dates.

Most often it refers to Android's CalendarView. The range of dates supported by it are configurable. The user can select a date by tapping on it, and it's possible to scroll and fling the calendar to a desired date.

375 questions
4
votes
0 answers

Android CalendarView change fontFamily

I'm trying to change the fontFamily of a CalendarView in xml, but it's not happening. Below is the code : CalendarView :
Vicky
  • 1,807
  • 5
  • 23
  • 34
4
votes
1 answer

How do I change the background color of calendar dates in MaterialCalendarView

I'm trying to change the background color of dates using a JSON response I get. But I'm having some difficulty. Here is my code:
user7255568
4
votes
0 answers

Change CalendarView weekday name's layout of DatePickerDialog

I'm trying to customize a CalendarView of the DatePicker from DatePickerDialog. I already changed DatePickerDialog's background and button label color style, thanks to excellent Vikram's answer. Now I want to change layout of weekday name…
learner
  • 1,311
  • 3
  • 18
  • 39
4
votes
1 answer

UWP change CalendarDatePicker language in runtime

I have an application that changes UI in runtime. Here is my code for changing language: public void SwitchLanguage(SupportedLanguage language) { // Check if passed argument is different from current language if (CurrentLanguage !=…
Developer
  • 4,158
  • 5
  • 34
  • 66
4
votes
1 answer

Set cell highlight colors dynamically Android Times Square CalendarView

I am using Android Times Square for a customizable CalendarView. I want to highlight two sets of dates with different colors. Right now I can highlight the dates in both the set with only one color using the following in xml
hello world
  • 797
  • 1
  • 9
  • 31
4
votes
1 answer

Android CalendarView detect month change

I was wondering if there was a way for me to detect when a user changes the month (swipes to another month). Right now, I've implemented a calendar.setOnDateChangeListener(this); My problem is that, when I change the month, the @Override public…
momoja
  • 938
  • 9
  • 23
4
votes
2 answers

Android. CalendarView...show only one month calendar at a time

i am using CalendarView in which i want to view only one month calendar at a time and view next month on scroll but CalendarView shows all the month at a time. below is my code.
Anuj Jindal
  • 1,711
  • 15
  • 24
4
votes
2 answers

Android Calendar View - How to customize Calendar View to make it like Google Calendar App one?

In recent Google Calendar App , it has a calendar which can be pulled down to show, and display in the style like this: I wanted to build a Calendar like this to the App, but when I put the android API CalendarView to the app, its style is very…
passer
  • 634
  • 2
  • 8
  • 16
4
votes
0 answers

Android CalendarView with no default date needed

I am using Android's CalendarView and I need to non-highlight the actual date an startup. I can't find any methods to do that. Is there anything available?
4
votes
1 answer

How to use calendarView

I am trying to create month-view by using calendarView. But I miss some experience with calendarView. I actually just know how I can change the colours. I want that the user can just see the current month and cant scroll through the calendar…
Marcel Hofgesang
  • 951
  • 1
  • 15
  • 36
4
votes
1 answer

How to get date from calendarView() onCreate, with a specific format e.g. DD/MM/YYYY?

I'm trying to get a date from calendar view: calendar = (CalendarView) findViewById(R.id.calendarView); by trying: String selectedDate = calendar.getDate().toString(); But am getting error saying that toString() method can not be resolved I would…
Ilja
  • 44,142
  • 92
  • 275
  • 498
4
votes
1 answer

Customize CalendarView to allow individual days displayed differently

I have a calendar view and I want to customize individual days (say change color) under specific condition that I have. For example change the color of days if day is odd number or even number. Is there a way to do that?
Stathis Andronikos
  • 1,259
  • 2
  • 25
  • 44
4
votes
2 answers

calendarview stops scrolling when nested in scrollview in android

I have nested calendarview in ScrollView . My problem begins when height of view increases. I can scroll calendar months vertically but when scrollview scrollbar comes it does not let scroll calendar. Instead of scrolling calendar the whole view…
ataurrehman
  • 129
  • 1
  • 10
4
votes
0 answers

Changing colour of specified days in Android CalendarView

I'm trying to change the text colour of specific days in Android's CalendarView to mark days that have events. I'm currently trying to do this by making a copy of Android's CalendarView.java and injecting my own code in relevant places, but am open…
4
votes
1 answer

Android: How can I disable scrolling of CalendarView

Is there a way to disable scrolling in a calendarview without completely disabling the calendar date select events?
pleasantstranga
  • 231
  • 2
  • 14
1 2
3
24 25