Question

I'm building an application using CalendarView. My issue is, that I don't find the way to customize the calendar style.

This is my layout

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/calendario_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >

    <CalendarView
        android:id="@+id/calendarView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />

</LinearLayout>

When I show this screen, I get the month's name and the year, like in the photo.

Sample photo

How can I customize the CalendarView style?

Was it helpful?

Solution

for designing the calendar you can try this Link and change the

android:layout_height="wrap_content"

to

android:layout_height="match_parent"

this might also help you Link

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top