skip to Main Content

In my android project i created a custom view using canvas so that i can draw shapes
but whenever i add the custom view to my xml my design and blueprint goes blank so that nothing in the design shows.
but if i run the project the custom view works perfectly in the emulator but doesn’t show on the design mode.

Before adding the custom view

After adding the custom view

2

Answers


  1. Restart android studio by clearing the cache.
    enter image description here

    Login or Signup to reply.
  2. It’s major issue with Dolphin version of Android Studio .So, please wait for update in it or go for Flamingo Canary version to fix it out.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search