Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Android Studio message "Paint.setShadowLayer.. graphics not accurate.." without this code

I get this message in android studio xml preview: "The graphics preview in the layout editor may not be accurate: -Paint.setShadow is not supported." Without having this line of code at all in my project. Also I tried to run "Edit-Find-Find in Path" and didn't find this line of code at all in all my project, so why do I get this message?

I read this question, but don't think its the right answer cause this message start to appear after I tried few lines of code containing shadow values, but remain also after deleting those lines.

enter image description here

like image 495
Yuval Levy Avatar asked Dec 17 '15 11:12

Yuval Levy


3 Answers

don't worry, it is saying that, preview of code will not as same as output, sometimes Invalid cache/restart will work, or change API level in combo box at the top of graphical preview.

like image 61
Chirag thaker Avatar answered Nov 01 '22 19:11

Chirag thaker


Its showing this because of custom graphics. Hopefully the will have these views in next android studio update

like image 29
Yunus Dawji Avatar answered Nov 01 '22 21:11

Yunus Dawji


The reason for warning is because you are using some of the material design elements (like floating action button) this warning can be removed by using Cordinate layout with these element

like image 1
Priyank Patel Avatar answered Nov 01 '22 19:11

Priyank Patel