Giter Site home page Giter Site logo

Comments (23)

daimajia avatar daimajia commented on June 30, 2024

Animation? What kind of animation?

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

like when activity starts that progress bar goes from 0 to X %.
Currently i am doing it with:

Timer timer = new Timer();
    timer.schedule(new TimerTask() {
      @Override
      public void run() {
        activity.runOnUiThread(new Runnable() {
          @Override
          public void run() {
            if(progressBar.getProgress() < maxPercent) {
              progressBar.incrementProgressBy(1);
            }
          }
        });
      }
    }, 1000, 20);

One more thing, why is last release 1.2 from 2014, there are no attributes like

custom:progress_unreached_bar_height="4dp"
                    custom:progress_reached_bar_height="8dp"
                    custom:progress_text_size="16dp"
                    custom:progress="0"

in current version 1,2

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Transition animation will be supported in next version. Currently not support.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Thanks for your advice.

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

Thanks! Nice Work.

Is there any reason that last release is from 2014. What is the latest version that should be used in gradle?

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Ha, there happened a lot of things since 2014. Too busy to take care my open source projects. But now, I think I'm back. 🎉

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

There is a PR #35 which archived what you want, but I can't merge it, because It may get error or bad effect in some cases. It's not perfect enough.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

BTW. You can always get the version info here : http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.daimajia.numberprogressbar%22

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

is there a way to tell gradle to use last commit and not release 1.2?

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

@ivanstojkovicapps Change 1.2 -> 1.1

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

Thanks, i tried this
compile 'com.daimajia.numberprogressbar:library:1.1'

Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:9:9-43
  	is also present at [com.daimajia.numberprogressbar:library:1.1] AndroidManifest.xml:4:45-81 value=(@drawable/ic_launcher).
  	Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:6:5-25:19 to override.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Oh, it's an old bug, better not use 1.1 anymore.

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

so you suggest: compile 'com.daimajia.numberprogressbar:library:1.2'
but there is a problem that the attributes are not working, when i use 1.2

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

@ivanstojkovicapps which attribute? unreachedHeight ?

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024
custom:progress_unreached_bar_height="4dp"
                    custom:progress_reached_bar_height="8dp"
                    custom:progress_text_size="16dp"
                    custom:progress="0"

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

none of those is working and there are no methods to set it programatically

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

image

Make sure that you have added the highlight line in XML file. I just tested, it works well.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024
xmlns:custom="http://schemas.android.com/apk/res-auto"

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

thanks, that was set wrong! Great!

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Version 1.3 has been released, please try the latest version of this lib. Lots of issues has been fixed.

from numberprogressbar.

ivanstojkovicapps avatar ivanstojkovicapps commented on June 30, 2024

thanks already got it!

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

This thread will be closed, the feature will be archived in next version, thanks for your feedback. Have a nice day.

from numberprogressbar.

Coehill avatar Coehill commented on June 30, 2024

@daimajia Hey did animation functionality get completed? If so, how does one use it?

from numberprogressbar.

Related Issues (20)

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.