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

It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.

Vincenzo Carrano

Vincenzo Carrano

Administrator, Segshop

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