Android: Need custom calendar like CKCalendar in iOS - android

I need custom calendar like CKCalendar in iOS - https://github.com/jaykz52/CKCalendar
In CKCalendar iOS I can set colors of days, can disable dates for touch.
Is there anything similar for Android?

Check out Times Square by Square. It might not have the exact customizations you want but it's customizable enough so that you can modify to suit your needs.

Related

Custom date picker Android - Kotlin

I'm trying to create a custom calendar in Android. I want to create somethning like this
custom calendar.
As you can see the design is slightly different than normal date picker for android. I tried to change it in xml, but like I found out, it isnt possible. So my question is - how to do that? Should I create custom class which extend from DatePicker? I was trying to find the solution by myself, but I found only answers to change color etc, but I want to also change design and font.
I will be very grateful for your help

Is it possible to add a dot below day on Android Material Datepicker?

I would like to add dots below specific dates, anyone knows if it's possible with the Material Components?
It's a similar problem to the one here - it does not seem to be currently supported by the MaterialDatePicker.
Feature request submitted here, feel free to back it up.
Update
The feature has been implemented and it's now possible to add a dot below days in the Material DatePicker. The material catalog has a very clear example of such an implementation.
You need to extend the DayViewDecorator class and override one of the getCompoundDrawable methods to create the drawable (little circle under each desired date) - in this case it would be getCompoundDrawableBottom.

Custom CalendarView

I want to display a CalendarView and then change backgound of certain blocks (of dates) red and certain blocks green. Now, I don't think I can do that in default CalendarView.
So, I started googling about how to create a custom CalendarView and I came to know that creating a custom CalendarView is impossible. We have to use a GridView.
So, I just wanted to know that is that really true and if it is not then how should I go about making a custom CalendarView
There is a library available now known as ZCustomCalendar which allows you to define individual custom views for various types of dates.

Android: advanced ColorPickerDialog

I'm looking for an advanced Android color picker dialog. The standard color picker from the API Demos and examples from this post aren't quite acceptable to me. I'd like it to look like this: this image. Are there any open source color pickers that look like that?
UPDATE: My primary goal is to make the Color Picker easy to use: it'd be great if the user only needs to click once to pick any color, and all possible colors are represented. The Color Pickers from the examples I've mentioned require two clicks to pick a color and are too complicated for the average user.
This one looks pretty close to what you want, and is FOSS:
https://github.com/LarsWerkman/HoloColorPicker
how about this solution ?
look at the screenshot:
source code here .
Have you tried Android Color Picker?
If you need to show the RGB-Code of the currently selected color, just modify the dialog by adding an TextView and adding an update to it in the ColorChangeListener (or whatever it's called)
Or take a look at the color-picker dialog of CyanogenMod
Here a link to the source: CyanogenMod color-picker on GitHub

Is there is any API to make a calendar in Android?

I am going to create a new appliction that will use a calendar. Do I need to use a third-party calendar, or does Android provide an API to make calendars?
There is no Calendar component that ships with Android. Your best bet is to create one using a GridView that you will bind to an adapter containing all the days of a given month.
Android does have a CalendarView from 3.0 but there is no setAdapter(). You might want to either want to use a gridView and set the # of columns to 7 (note there might me a space left to the right to which you could set the padding to -1/-2). Otherwise the best is to use a ScrollView and build the grid yourself.

Categories

Resources