©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
SoundEffectConstants
版本:Android 2.3 r1
结构
继承关系
public class SoundEffectConstants extends Object
java.lang.Object
android.view.SoundEffectConstants
类概述
playSoundEffect(int)
所需的播放声效设定常量。
常量
public static final int CLICK
(译者注:单击事件)常量,取值0 (0x00000000)
public static final int NAVIGATION_DOWN
(译者注:View.FOCUS_DOWN
)常量,取值4 (0x00000004)
public static final int NAVIGATION_LEFT
(译者注:View.FOCUS_LEFT
)常量,取值1 (0x00000001)
public static final int NAVIGATION_RIGHT
(译者注:View.FOCUS_RIGHT
)常量,取值3 (0x00000003)
public static final int NAVIGATION_UP
(译者注:View.FOCUS_UP
)常量,取值2 (0x00000002)
公共方法
public static int getContantForFocusDirection(int direction)
针对不同声音方向,获得相应的发声常数。
参数
direction 参数取值为以下常量之一:FOCUS_UP
, FOCUS_DOWN
, FOCUS_LEFT
, FOCUS_RIGHT
, FOCUS_FORWARD
, FOCUS_BACKWARD
.
返回值
合适的发声常数
补充
文章链接
触感反馈和声音反馈的效果实现