android - Blur Mask Filters are not supported -
i have 1 custom class extends view
class , in drawing custom bitmaps. problem whenever using class in xml, creates rendering problem.
here xml code :
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <com.custom.drawingview android:layout_width="wrap_content" android:layout_height="wrap_content"/> </relativelayout>
there nothing else using in xml still error there, sharing screenshot it, check below.
in custom view class have used blurmaskfilter also
blurmaskfilter blurmaskfilter = new blurmaskfilter(5, blurmaskfilter.blur.normal);
as can see, not able see preview of layout , not component tree.
configuration :
android studio : 2.1.3 classpath 'com.android.tools.build:gradle:2.1.3' compilesdkversion 24 buildtoolsversion "24.0.0"
set android:hardwareaccelerated="false"
on activity inandroidmanifest.xml
this:
<activity android:name=".myactivity" android:hardwareaccelerated="false">
its work fine me.
Comments
Post a Comment