0
votes

this is my output: [1]: https://i.stack.imgur.com/MXUAv.png

this is expected : [2]: https://i.stack.imgur.com/VrnDA.png

I have made a shape in xml and I have a problem giving it transparent and blur color. how should I do it here's my code to the xml:

<shape android:shape="rectangle"
   xmlns:android="http://schemas.android.com/apk/res/android"

   >
   <solid android:color="#FFFFFF"/>
   <corners android:radius="8dp"/>
   
</shape>



1

1 Answers

1
votes

You can't give blur using shape, the shape can max be transparent but can't be a blur. To easily blur just use some library instead of creating bitmap on canvas and then tweaking the properties.

Here is some example.

Blur view