Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glassmorphism effect in android

In 2021 Glass morphism UI is in trend. As a new android developer I want to add glass morphism effect in my android app so I search my query on google but I didn't get any answer to that how can I add glass morphism effect in my android app.

Should I have to write code for Glass Morphism effect or we can simply add through xml design.

like image 239
Arjun Yadav Avatar asked Feb 13 '21 07:02

Arjun Yadav


1 Answers

Glassmorphism effect is basically combination of blur and opacity. You can use one of many libraries for blur effect or you can write your own blur function. Then you can change the opacity of any view present in android both programmatically or in xml.

android:alpha="0.6"

You can checkout this link for blur libraries.

like image 124
Abhishek Taparia Avatar answered Sep 18 '22 17:09

Abhishek Taparia