Android中文API(96)——SoundEffectConstants
?
前言
本章內容是android.view.SoundEffectConstants,版本為Android 2.3 r1,翻譯來自"凌云健筆",歡迎大家訪問他的博客:http://www.cnblogs.com/lijian2010/,再次感謝"凌云健筆" !期待你一起參與Android 中文API的翻譯,聯系我over140@gmail.com。
?
聲明
歡迎轉載,但請保留文章原始出處:)
博客園:http://www.cnblogs.com/
Android中文翻譯組:http://goo.gl/6vJQl
?
正文
一、結構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.
???????????????? 返回值
???????????????? 合適的發聲常數
? 五、補充
?
文章鏈接
觸感反饋和聲音反饋的效果實現
?
??
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的Android中文API(96)——SoundEffectConstants的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 从源码开始编译一个带有WEB服务器功能的
- 下一篇: HTC 败诉对 Android 意味着什