prolificinteractive / material-calendarview

A Material design back port of Android's CalendarView
https://prolificinteractive.github.io/material-calendarview/
MIT License
5.91k stars 1.32k forks source link

MVC not rendering on xml design view, messed up #1135

Open almazangc opened 1 year ago

almazangc commented 1 year ago

image Please refer below

almazangc commented 1 year ago

<com.prolificinteractive.materialcalendarview.MaterialCalendarView android:id="@+id/adapter_analytic_parent_item_calendar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/adapter_analytic_parent_item_date_started" app:mcv_selectionColor="@color/A80_BRIGHT_SKY_BLUE" app:mcv_selectionMode="range" app:mcv_showOtherDates="all" />

vivekgupta4Git commented 1 year ago

When you want to work on design just downgrade the library version to 1.6.0 but upgrade it when you run the app.

almazangc commented 1 year ago

When you want to work on design just downgrade the library version to 1.6.0 but upgrade it when you run the app.

is there no fix aside from rolling back version?

vivekgupta4Git commented 1 year ago

When you want to work on design just downgrade the library version to 1.6.0 but upgrade it when you run the app.

is there no fix aside from rolling back version?

yes ! download the source code and inside the constructor of MaterailCalendarView put this line of code


  if(isInEditMode())
    {
      AndroidThreeTen.init(context);
    }

build the project and include it in your working project

almazangc commented 1 year ago

When you want to work on design just downgrade the library version to 1.6.0 but upgrade it when you run the app.

is there no fix aside from rolling back version?

yes ! download the source code and inside the constructor of MaterailCalendarView put this line of code


  if(isInEditMode())
    {
      AndroidThreeTen.init(context);
    }

build the project and include it in your working project

Would that mean a lot of work, like forking, and reposting the project for dependency usage?