Giter Site home page Giter Site logo

musicbobber's People

Contributors

igorcr avatar ilchenko-peter avatar iojjj avatar jekaua avatar vadimhalimendikcr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

musicbobber's Issues

A little bug

I find a little bug in your code.

when you use windowManager.updateViewLayout(playPauseButton,params);maybe have an erro:

java.lang.IllegalArgumentException: View=com.cleveroad.audiowidget.PlayPauseButton{42fbbb50 V.ED.... ......I. 0,0-360,360} not attached to window manager

private void updatePlayPauseButtonPosition() {
WindowManager.LayoutParams widgetParams = (WindowManager.LayoutParams) expandCollapseWidget.getLayoutParams();
WindowManager.LayoutParams params = (WindowManager.LayoutParams) playPauseButton.getLayoutParams();
if (expandCollapseWidget.expandDirection() == ExpandCollapseWidget.DIRECTION_RIGHT) {
params.x = (int) (widgetParams.x - radius);
} else {
params.x = (int) (widgetParams.x + widgetWidth - widgetHeight - radius);
}
params.y = widgetParams.y;
windowManager.updateViewLayout(playPauseButton, params);
if (onWidgetStateChangedListener != null) {
onWidgetStateChangedListener.onWidgetPositionChanged((int) (params.x + widgetHeight), (int) (params.y + widgetHeight));
}
}

Suggestion

I suggest to add onClick/onLongClick listeners to albumCover, or on Disk-like image to collapse

Or custom actions

Changing Play/Pause Button

Hi @Iojjj

i have little issue on changing the play/pause button on when my app onPause(), what i need.? i want to change the play/pause button on depending on whether the music is play or pause on when my app is going on a onPause(), i just show audioWidget onPause() like @Override protected void onPause() { super.onPause(); audioWidget.show(100, 100); } and i maintain audioWidget.controller() click separately.

so how can i change play/pause icon as per my requirement.

also when i call audioWidget.hide() in onResume() of activity it will crash app and my crash log like Process: com.example.gaurav.myapplication, PID: 23850 java.lang.IllegalArgumentException: View=com.cleveroad.audiowidget.PlayPauseButton{27b58e94 V.ED.... ......I. 0,0-240,240} not attached to window manager at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:421) at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:305) at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:74) at com.cleveroad.audiowidget.AudioWidget.updatePlayPauseButtonPosition(AudioWidget.java:421) at com.cleveroad.audiowidget.AudioWidget.access$6500(AudioWidget.java:31) at com.cleveroad.audiowidget.AudioWidget$ExpandCollapseWidgetCallback.onMoved(AudioWidget.java:653) at com.cleveroad.audiowidget.TouchManager$StickyEdgeAnimator.lambda$new$1(TouchManager.java:389) at com.cleveroad.audiowidget.TouchManager$StickyEdgeAnimator.access$lambda$0(TouchManager.java) at com.cleveroad.audiowidget.TouchManager$StickyEdgeAnimator$$Lambda$1.onAnimationUpdate(Unknown Source) at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1283) at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1207) at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1248) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:659) at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:682) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800) at android.view.Choreographer.doCallbacks(Choreographer.java:603) at android.view.Choreographer.doFrame(Choreographer.java:571) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5576) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)

Thanks.

IllegalArgumentException when hide and show widget

captura

View=com.cleveroad.audiowidget.PlayPauseButton{e5daca4 V.ED..... ......I. 0,0-240,240} not attached to window manager

I get IllegalArgumentException at audiowidget.show(int,int) after hide it with audiowidget.hide()

can it be used for recorder app?

hey and thanks for such a beautiful widget
i have a background recorder app which will start recording voice in background using my custom shortcut(self made)
as i interested in your product i want to know is there any chance to use it for my situation?

Change play/pause button status

When i press my media player button from play to pause or pause to play i also want to change the widget play/pause button. How to do that?

Seekbar Issue

Hi Guys,

We are trying to use the bobber in one of our android app and it has been great. The only part we need is a seekbar using which we can forward or move backward in the song.

Is there any way to achieve that or is there any enhancement you are thinking about? Can you guide us with that if there is any way to do that?

Regards
Hasan Sajora

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.