How to give blur effect to image in android

In this tutorial we will show you how to make image blur so that it can be used to improve your android application user interface or in other application as per developer choice.

To begin with we have to include a third party android library. To do that ahead to gradle.build and copy the below dependency link.

 

Building Application.

  • Creating User Interface.

In activity_main.xml we have to add an Imagview.

  • Building Application

To create blur effect we have to add the below code.

You can control the intensity by giving desired intensity value as intensity(50).

That’s it my friends we are ready to go. Run the application and check for output.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.