Adding text in Calendar View - android

I was trying to add text in my calendar view, here is the example how i want it to be like
http://postimg.org/image/wf4gxz1dr/
My CalendarView is in Material Design CalendarView, here is the link of my calendarView
http://postimg.org/image/iid1z41z1/
Is it possible to add text in this material design or i have to do it with the basic calendarView like in 1st picture.?
Please tell me how can i mak it possible in these views.
Sorry i can't upload screenshots here.
Thanks in Advance

Last month I was able to implement a little calendar view using Caldroid https://github.com/roomorama/Caldroid.
It's flexible to use and it's not so hard to get a custom calendar view as implementing onDraw from the CalendarView.
Check the view I created (just by following the documentation). Just create your own cell layout and implement it:
And of course you can go beyond that.

Related

How to decorate or highlight some dates on Calendar VIew in android?

In my project, I am getting a response from server.In that response there will be some dates of current month.I want to show those dates with different text color, different background color on calendar view.I waat to differentiate those dates from other dates.
I read that in default Calendar view we can't do that.
I've searched for external libraries.
I found MCalendar library.But in that library the calendar view not suits me.
Can anyone give me solution for this or direct me to perfect library I am looking for?
Thanks in Advance
Hey after two days search I found this library.
The library name is Material Calenderview: https://github.com/prolificinteractive/material-calendarview.
We can add custom colors to a list dates by using adding Decorator to this calendar view. If you go there you can see the documentation for adding decorator a calendar view fir highlighting some dates.

How to display calendar view in a single row in android

i don't know how to customize a calendar view to be the same as the picture for my application. Here is my example picture.
In the past, I had the same problem so I have created a Kotlin library which solves this problem. You can create a calendar with your custom UI and use selection features with few lines of code. You can find the repository here and here is an article about my sample app.
Additionally, there is a similar library for Java here.
Yes u can define a custom calender view like that. Here is my suggestion:
ListView/ReceyclerView
Calendar class
Easy way is make user pick month/year first, your list only display day.

How can i create a view or layout like CalendarView of all months of the year?

Hi im starting to developing in Android and search a lot of how to make an android layout like the image that is below. but Android Studio only has Calendar View.
Do you know a library with a similar calendar view?
Or how can i make a similar View?
How about trying out this: https://github.com/square/android-times-square it shows the calendar view as you want and it can be set up vía XML. Maybe Android Arsenal page would fit you whenever you need a library.

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.

ActionBar calendar spinner

In the android design guidance there is an image of "ActionBar calendar spinner":
Is there a code realization for this widget (if exists)? Is it a native SDK widget or just design pattern?
I guess the native calendar app is not open source, so i doubt that you'll find the source code somewhere around the web.
But you probably can solve that by creating a custom adapter and inflating different layouts for getView() (current/selected item) and getDropDownView() (spinner rows).
Edit: I just saw the calendar app became open-source. Here is the git-Link: https://android.googlesource.com/platform/packages/apps/Calendar.git
I would be curious too whether the extended ActionBar list navigation is a pattern or a custom widget. Would you post your results after checking out the source?
Quite late for the OP now, but thought that i could help by-passers.
You can achieve a similar look and functionality by modifying the code provided in this tutorial http://www.androidhive.info/2013/11/android-working-with-action-bar/ .
Just read the section about the actionBar Spinner. Than modify the related methods to include two textviews (or one textview with tabbed space to achieve Day tab Dec 1) instead of icon/textview.

Categories

Resources