我如何在SeekBar进度更新中振动我的设备

问题描述 投票:1回答:1

所以我的Android应用程序中有一个搜索栏。我希望设备在每次更新进度值时振动50毫秒(例如)。我怎么做 ?预先感谢。

android seekbar vibration
1个回答
3
投票

使用SeekBar.OnSeekBarChangeListener知道值何时改变。并检查this answer进行振动。

© www.soinside.com 2019 - 2024. All rights reserved.