Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set onClickListener on buttons within this View? #11

Closed
allenxuan opened this issue Nov 19, 2015 · 3 comments
Closed

How to set onClickListener on buttons within this View? #11

allenxuan opened this issue Nov 19, 2015 · 3 comments

Comments

@allenxuan
Copy link

No description provided.

@iammert
Copy link
Owner

iammert commented Nov 20, 2015

Just like View.OnClickListener.

 mpv.setOnClickListener(new View.OnClickListener() {
      @Override public void onClick(View v) {
        if (mpv.isRotating()) {
          mpv.stop();
        } else {
          mpv.start();
        }
      }
    });

@iammert iammert closed this as completed Nov 20, 2015
@allenxuan
Copy link
Author

I wanna control all of the buttons , if possible. The previous-song button,
the next-song button , the play-pause button and the music progress bar.
What's are the IDs of these components?
On Nov 20, 2015 7:06 PM, "Mert Şimşek" notifications@github.com wrote:

Just like View.OnClickListener.

mpv.setOnClickListener(new View.OnClickListener() {
@OverRide public void onClick(View v) {
if (mpv.isRotating()) {
mpv.stop();
} else {
mpv.start();
}
}
});


Reply to this email directly or view it on GitHub
#11 (comment)
.

@iammert
Copy link
Owner

iammert commented Nov 22, 2015

Check project Readme how to control MusicPlayerView.

@iammert iammert reopened this Nov 22, 2015
@iammert iammert closed this as completed Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants