GithubHelp home page GithubHelp logo

Comments (14)

sp574 avatar sp574 commented on July 20, 2024

I have the same issue

from circleprogress.

xbassols avatar xbassols commented on July 20, 2024

Same here.

from circleprogress.

uknownothingsnow avatar uknownothingsnow commented on July 20, 2024

I will check this bug this weekend, please wait

from circleprogress.

ferozsho avatar ferozsho commented on July 20, 2024

In Fragment the arcBottomHeight = 0 after reload.

on first load:
-- /ArcProgress﹕ arcBottomHeight: 14.323726
-- /ArcProgress﹕ onDraw -> getBottomText : 142.5122

on reload:
** /ArcProgress﹕ arcBottomHeight: 0.0
** /ArcProgress﹕ onDraw -> getBottomText : 142.5122

from circleprogress.

uknownothingsnow avatar uknownothingsnow commented on July 20, 2024

@ferozsho thanks a lot, I will fix it

from circleprogress.

uknownothingsnow avatar uknownothingsnow commented on July 20, 2024

@ferozsho would you mind give more detail about fragment reload, so I can reproduce this bug.

from circleprogress.

ferozsho avatar ferozsho commented on July 20, 2024

@lzyzsd Thanks for response.

please check when i reuse the code its working.
onfrag

from circleprogress.

uknownothingsnow avatar uknownothingsnow commented on July 20, 2024

@ferozsho I still can not reproduce this bug, would you mind giving more detail about your code? I use show and hide to switch fragments and can not reproduce it.How do you reload your fragments?

from circleprogress.

ferozsho avatar ferozsho commented on July 20, 2024

@lzyzsd Please add this below code on ArcProgress.java under onDraw method
after 297 line and its working fine with below code.

        if(arcBottomHeight == 0) {
            float radius = getWidth() / 2f;
            float angle = (360 - arcAngle) / 2f;
            arcBottomHeight = radius * (float) (1 - Math.cos(angle / 180 * Math.PI));
        }

because the arcBottomHeight is getting to zero. after reload the fragment.

For calling multiples time on Activity:

FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.overviewFragment, OverviewFragment
.newInstance(selectedPeriod, sDate, eDate));
fragmentTransaction.commit();

1

Hope this help.

from circleprogress.

akshaylive avatar akshaylive commented on July 20, 2024

I have the same problem. Please release with the fix. Thank you so much!

from circleprogress.

ngalongc avatar ngalongc commented on July 20, 2024

@ferozsho u are my hero, I solved this by using ur solution, I wish I can kiss u. And of cause thank you author of this package! Which is very good looking and nice!

from circleprogress.

Lir10 avatar Lir10 commented on July 20, 2024

can you push this commit and release a new fixed version please? :)

from circleprogress.

Lir10 avatar Lir10 commented on July 20, 2024

Looks like we can fix this from the fragment it self with :

@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        if (rootView == null) {
            rootView = inflater.inflate(R.layout.status, container, false);
            // Initialise your layout here
        } else {
            container.removeView(rootView);
        }
return rootView;
}

from circleprogress.

b0wter avatar b0wter commented on July 20, 2024

The same issue also happens when using the control in a regular activity inside a PercentFrameLayout.

from circleprogress.

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.