Back to project page translationKeyboard.
The source code is released under:
GNU General Public License
If you think the Android project translationKeyboard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.distantshoresmedia.translationkeyboard; /*from w w w. ja v a2 s . c o m*/ import android.content.Context; import android.util.AttributeSet; public class VibratePreference extends SeekBarPreferenceString { public VibratePreference(Context context, AttributeSet attrs) { super(context, attrs); } @Override public void onChange(float val) { LatinIME ime = LatinIME.sInstance; if (ime != null) ime.vibrate((int) val); } }