Vibrate
Vibrate:
Vibrate captures the features that create vibrational pattern in the device.
Smartphones and tablets with android operation systems are incorporated with a small motor known as a vibration motor or simply a vibrator.
When activated, this motor creates vibrations, and the sensations can be felt by its user which makes it unique.
Example:
<!-- AndroidManifest.xml -->
<uses-permission android:name="android.permission.VIBRATE"/>
<!-- activity_main.xml -->
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:padding="16dp">
<Button
android:id="@+id/clickToVibrate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="Click To Vibrate"
android:textColor="@color/colorWhite"
android:background="@color/colorPrimaryDark"
/>
</RelativeLayout>