Check Mobile App
Read now
Start a Project

how to make your users aware of something went wrong by vibration and shake effect

Save

In this blog, I will show you how can we aware the users for the wrong input or something went wrong. There are simple two way to alert your users or customer for the wrong input.

  1. Vibrate your Device
  2. Shake the Views or text

Vibrate Your Device

Step 1: Create the object for the Vibrator class,

Step 2: Below is the block of code for which vibrate the device for the 200 millisecond,

Step 3: Add permission in Manifest.xml

 

Shake the View or text

Step 1: Create your shake error file,

Step 2: Create the Interpolator,

Step 3: Apply on Views or text which you want to Shake or wobble,

If you have any doubt on this blog, please ask in comments. And stay updated and stay super.

 

 

 

 

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.

Osama
Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home