Music Player and Volume Adjustment
Music Player
Specify a name, so that the display can be controlled by another button or not, such as double-click. Must contain four Button and a Text, and name were specified name. It may contain any other interface elements such as Image and so on.
autoShowtrue/falseif they go into lock screen when playing music, whether to automatically displayMusicControlmusic_stateplayback status0stopped1playerAfter updating the music player supports song title and artist name are shown separately, respectively @
music_control.titleand @music_control.artistExamples<MusicControl name = "music_control" x = "" y = ""> <! - Album cover, in addition to ordinary Image as album cover image is bound to, you can specify the size, plus Mask, etc. -> <Image name = "music_album_cover" /> <! - Song title and artist display text -> <Text name = "music_display" /> <! - On the one button -> <Button name = "music_prev" /> <! - Next track button -> <Button name = "music_next" /> <! - Play button -> <Button name = "music_play" /> <! - Pause button -> <Button name = "music_pause" /> </ MusicControl>// Example: Double-click Control music control display hidden <Button x = "178" y = "529" w = "126" h = "126"> <Triggers> <Trigger action = "double" target = "music_control" property = "visibility" value = "toggle" /> </ Triggers> </ Button><MusicControl x = "0" y = "300" name = "music_control" visibility = "false"> <Image name = "music_album_cover" x = "240" y = "40" alpha = "150" align = "center" alignV = "center" /> <! - Background -> <Image src = "music_bg.png" x = "40" y = "0" alpha = "100" /> <-! Text Added automatic scrolling feature, if developed width and scroll speed marqueeSpeed, will automatically scroll the text exceeds the width of the time -> <Text name = "music_display" x = "240" y = "10" w = "300" marqueeSpeed = "30" size = "24" color = "# FFFFFF" alpha = "150" align = "center" /> <Button name = "music_prev" x = "40" y = "40" w = "108" h = "84"> <Normal> <Image src = "music_previous_n.png" x = "40" y = "40" /> </ Normal> <Pressed> <Image src = "music_previous_p.png" x = "40" y = "40" /> </ Pressed> </ Button> <Button name = "music_next" x = "332" y = "40" w = "108" h = "84"> <Normal> <Image src = "music_next_n.png" x = "332" y = "40" /> </ Normal> <Pressed> <Image src = "music_next_p.png" x = "332" y = "40" /> </ Pressed> </ Button> <Button name = "music_play" x = "186" y = "40" w = "108" h = "84"> <Normal> <Image src = "music_play_n.png" x = "186" y = "40" /> </ Normal> <Pressed> <Image src = "music_play_p.png" x = "186" y = "40" /> </ Pressed> </ Button> <Button name = "music_pause" x = "186" y = "40" w = "108" h = "84"> <Normal> <Image src = "music_pause_n.png" x = "186" y = "40" /> </ Normal> <Pressed> <Image src = "music_pause_p.png" x = "186" y = "40" /> </ Pressed> </ Button> </ MusicControl>
Volume Adjustment
volume_levelvolume nowvolume_level_oldadjust the volume of the previous value: 1-15 based on comparison of the two judgments is increasing or decreasingvolume_type0call volume1system volume2phone ring tones, SMS tones3music player volume4alarm volume5Notification volume6Connectivity Bluetooth when call volume7In some countries compulsory system volume8DTMF volume9TTS volume10FM volume
- Under normal lock screen can only tune 3 (volume player volume)
volume_type> = 0 indicates the volume is being adjusted, the adjusted value of -1 is completed according to the volume display to show or hide