Custom android music player view.
Custom android music player view.
Check it on youtube
Define it in your xml file.
IMPORTANT : I designed shuffle, like and replay icons for my demo app. You can create your by using Flat Icon website. Or, if you want to use mine instead of creating new icon set, then you can download my action set from here.
Find view and set necessary values.
…Start and stop depends on your player.
ipv.start();
ipv.stop();ipv.setCoverDrawable(R.drawable.imagetest);
ipv.setActionOneImage(R.drawable.shuffle_selected, R.drawable.shuffle_unselected);
ipv.setActionTwoImage(R.drawable.like_selected, R.drawable.like_unselected);
ipv.setActionThreeImage(R.drawable.replay_selected, R.drawable.replay_unselected);
ipv.setProgressEmptyColor(Color.GRAY);
ipv.setProgressEmptyColor(Color.BLACK);//Loads image from url (By Picasso)
ipv.setCoverURL("http://abc.xyz/1.png");//edit your current progress
ipv.setProgress(12);
int currentProgress = ipv.getProgress();//Check if any action selected or not. Or edit.
boolean isSelected = ipv.isAction1Selected();
ipv.setAction1Selected(true);//Check if ipv is playing
ipv.isPlaying();Project build.gradle
repositories {
maven {
url "https://jitpack.io"
}
}Module build.gradle
dependencies {
compile 'com.github.iammert:InteractivePlayerView:f4f6490290'
}Copyright 2015 Mert Şimşek.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.No open issues yet, or sync has not completed.