Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DOMO-Dom opened this issue Dec 10, 2022 · 5 comments
Open

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

DOMO-Dom opened this issue Dec 10, 2022 · 5 comments

Comments

@DOMO-Dom
Copy link

image
Please refer below

@DOMO-Dom
Copy link
Author

<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
Copy link

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

@DOMO-Dom
Copy link
Author

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
Copy link

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

@DOMO-Dom
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants