Just outta curiosity who wrote this script and why was it removed? Im sure it was on the wiki as an example.

Just outta curiosity who wrote this script and why was it removed? Im sure it was on the wiki as an example.

//Flags Name: CV_music

LL.bindClass(“android.media.AudioManager”);

LL.bindClass(“android.widget.SeekBar”);

LL.bindClass(“android.widget.FrameLayout”);

LL.bindClass(“android.view.Gravity”);

var context = LL.getContext();

var mgr = context.getSystemService(Context.AUDIO_SERVICE);

var stream = AudioManager.STREAM_MUSIC;

// see http://developer.android.com/reference/android/media/AudioManager.html for other streams

var seekBar = new SeekBar(context);

seekBar.setMax(mgr.getStreamMaxVolume(stream));

seekBar.setProgress(mgr.getStreamVolume(stream));

seekBar.setOnSeekBarChangeListener(

{ onProgressChanged: function(seekBar, progress, fromUser)

{ if(fromUser)

 { mgr.setStreamVolume(stream, progress, AudioManager.FLAG_PLAY_SOUND);

} } });

// let the bar extend horizontally but not vertically, center it in the view

var lp = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT);

lp.gravity = Gravity.CENTER;

seekBar.setLayoutParams(lp);

// prevent the desktop to scroll when the thumb position is moved

item.setHorizontalGrab(true);

return seekBar;

]]>

4 Commentsto Just outta curiosity who wrote this script and why was it removed? Im sure it was on the wiki as an example.

  1. Anonymous says:

    < ![CDATA[

    It’s not mine and I didn’t remove it, but it’s a backup made with my multitool. Can’t say why it’s uploaded though.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    http://www.lightninglauncher.com/help/app/topic.php?id=195



    That’s the wonderful example for me to study customview.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    haruo nose​ thats the exact same reason I was looking for it. I dunno how you managed to find it though i spent ages looking for it I even signed in on ma laptop and searched through the comments for it. In the end i posted here and Jappie hooked me up with a copy of it.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Lukas Morawietz, yup. You caught me 😉 LOL

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *