aliab / circular-music-progressbar Goto Github PK
View Code? Open in Web Editor NEWBeautiful Circular Progress Bar with album art for android
Beautiful Circular Progress Bar with album art for android
When drap is dropped to new location, it would help playing song from a new time. Present version isn't allowing skipping part of song.
I need to get some information on this library features.
My question was does any way to create the circular-music-progressbar are view randomly? there was any option to achieved this functionality.
Is it possible to set an indeterminate progress bar for instance to give a user feedback while a song is loading?
You could expose a custom attribute boolean that could control weather it progresses clockwise or anti clockwise.
I'll be more than happy to do it in a pull request.
Cheers
Greetings
My music app run a service where the music is played, Im having problem to update the progress. This is what Im doing:
ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
Runnable updater = new Runnable() {
@Override
public void run() {
//The current progress of the song in %
final float percent = playerService.getCurrentPosition() * 100 / playerService.getDuration();
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
//If runOnUi is not done then the sheduler is stop
circularPb.setValue(percent);
}
});
}
};
updateHandler = scheduler.scheduleWithFixedDelay(updater, 2, 2, TimeUnit.SECONDS);
As you can see, that is not elegant at all, there is a scheduler in charge of repeating the process and inside of it I have to access the UI. Here is the full repo in case you want to take a deeper look (is WIP I have to do a lot of refactoring and cleaning).
I have being looking in your sample although the update concept is clear, is not what Im looking.
Do you have a suggestion?
This is not necessary for the library to contain
hi in
implementation 'com.github.aliab:circular-music-progressbar:v1.3.0'
can not use
app:enable_touch="false"
please fixed tank you
Not able to click on view. i used progressbar to show download progress on image and i want to cancel download on click but as i said i am not getting click event on click CircularMusicProgressBar. please fix issue ASAP. Thanks
xml:
<info.abdolahi.CircularMusicProgressBar
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/action_download_stop"
android:layout_width="42dp"
android:layout_height="42dp"
android:padding="8dp"
android:layout_gravity="center"
android:src="@drawable/download_cancel"
app:border_color="#fff"
app:border_width="2dp"
app:progress_color="#41c15c"
app:progress_startAngle="0"
app:enable_touch="true"
app:draw_anticlockwise="false"
android:visibility="gone" />
Hi, @aliab: Would it be possible to add a gif to understand how it works?
hello,
i want to add your view ,dynamically.
final CircularMusicProgressBar cmp = new CircularMusicProgressBar(ReadActivity.this);
ll.addView(cmp);
but not work
Is it possible to do this?
Use a prefix for attribute values so they do not conflict with other libs
is there a way to clear the progress without animation?
in addition, it would also be useful to set the progress without animation.
I use the music progressbar as a recyclerview item but the music progressbar captures all touch inputs, so I cannot detect touch.
Please make a propery to disable progress drag and touch input in general.
Thanks!
Wouldn't it be more consistent with the native progressBar if we had setProgress and setMax instead of just setValue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.