How does Android Customize various vibration modes of vibrator? M

Source: Internet
Author: User

The following file configures the body vibration time: frameworks/base/core/res/values/config. xml <! -- Long-pressed Vibration --> <! -- Vibrator pattern for feedback about a long screen/key press --> <integer-array name = "config_longPressVibePattern"> <item> 0 </item> <item> 1 </item> <item> 20 </item> <item> 21 </item> </integer-array> <! -- Virtual button Vibration --> <! -- Vibrator pattern for feedback about touching a virtual key --> <integer-array name = "config_virtualKeyVibePattern"> <item> 0 </item> <item> 10 </item> <item> 20 </item> <item> 30 </item> </integer-array> <! -- Soft keyboard button Vibration --> <! -- Vibrator pattern for a very short but reliable vibration for soft keyboard tap --> <integer-array name = "config_keyboardTapVibePattern"> <item> 40 </item> </integer-array> <! -- Enable vibration in non-safe mode --> <! -- Vibrator pattern for feedback about booting with safe mode disabled --> <integer-array name = "config_safeModeDisabledVibePattern"> <item> 0 </item> <item> 1 </item> <item> 20 </item> <item> 21 </item> </integer-array> <! -- Enable vibration in safe mode --> <! -- Vibrator pattern for feedback about booting with safe mode disabled --> <integer-array name = "config_safeModeEnabledVibePattern"> <item> 0 </item> <item> 1 </item> <item> 20 </item> <item> 21 </item> <item> 500 </item> <item> 600 </item> </integer-array> in the format, the odd position indicates the pause time, and the even position indicates the vibration time, In the MS.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.