Giter Club home page Giter Club logo

circular-music-progressbar's People

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

circular-music-progressbar's Issues

Need some Information

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.

Indeterminate progress bar

Is it possible to set an indeterminate progress bar for instance to give a user feedback while a song is loading?

Anti Clockwise support

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

How to update correctly (setValue)?

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?

bug in library

hi in
implementation 'com.github.aliab:circular-music-progressbar:v1.3.0'
can not use
app:enable_touch="false"
please fixed tank you

Not click able

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" />

add dynamically

hello,
i want to add your view ,dynamically.

final CircularMusicProgressBar cmp = new CircularMusicProgressBar(ReadActivity.this);
ll.addView(cmp);

but not work

clear progress?

is there a way to clear the progress without animation?
in addition, it would also be useful to set the progress without animation.

No possibility of disabling touch input

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!

SetValue?

Wouldn't it be more consistent with the native progressBar if we had setProgress and setMax instead of just setValue?

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.