Preface
This chapter is about android. view. SoundEffectConstants. The version is Android 2.3 r1 and translated from "Lingyun Jian pen". You are welcome to visit his blog: http://www.cnblogs.com/lijian2010/. Thank you again "Lingyun Jian pen "! I look forward to your participation in Android Chinese API translation, contact me over140@gmail.com.
Statement
You are welcome to repost, but please keep the original source of the article :)
Blog Garden: http://www.cnblogs.com/
Android Chinese translation group: http://goo.gl/6vJQl
Body
I. Structure
Public class SoundEffectConstants extends Object
Java. lang. Object
Android. view. SoundEffectConstants
Ii. Overview
playSoundEffect(int)
The constant used to set the playing effect.
3. Constants
Public static final int CLICK
(Note: Click an event) constant, value 0 (0x00000000)
Public static final int NAVIGATION_DOWN
Note:View.FOCUS_DOWN
) Constant, value 4 (0x00000004)
Public static final int NAVIGATION_LEFT
Note:View.FOCUS_LEFT
) Constant, value 1 (0x00000001)
Public static final int NAVIGATION_RIGHT
Note:View.FOCUS_RIGHT
) Constant, value 3 (0x00000003)
Public static final int NAVIGATION_UP
Note:View.FOCUS_UP
) Constant, value 2 (0x00000002)
Iv. Public Methods
Public static intGetContantForFocusDirection(Int direction)
Obtain the constant of the voice according to different sound directions.
Parameters
The value of the direction parameter is one of the following constants:FOCUS_UP
,FOCUS_DOWN
,FOCUS_LEFT
,FOCUS_RIGHT
,FOCUS_FORWARD
,FOCUS_BACKWARD
.
Return Value
Proper vocal constant
5. Supplement
Article Link
Implementation of touch feedback and sound feedback