Comments (14)
I have the same issue
from circleprogress.
Same here.
from circleprogress.
I will check this bug this weekend, please wait
from circleprogress.
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.
@ferozsho thanks a lot, I will fix it
from circleprogress.
@ferozsho would you mind give more detail about fragment reload, so I can reproduce this bug.
from circleprogress.
@lzyzsd Thanks for response.
please check when i reuse the code its working.
from circleprogress.
@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.
@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();
Hope this help.
from circleprogress.
I have the same problem. Please release with the fix. Thank you so much!
from circleprogress.
@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.
can you push this commit and release a new fixed version please? :)
from circleprogress.
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.
The same issue also happens when using the control in a regular activity inside a PercentFrameLayout.
from circleprogress.
Related Issues (20)
- Databinding incompatibility HOT 2
- Bug in Progess percentage calculation
- Text Size Set Twice In ArcProgress Constructor?
- Android X version ? HOT 2
- how to apply gradient in fill color? HOT 1
- text inside circle
- Arc Progress Amination issue
- Failed to resolve 1.2.1 HOT 1
- How to change the animation starting direction of the ArcProgress (end to start) HOT 1
- Could not determine artifacts for com.github.lzyzsd:circleprogress:1.2.1:
- Failed to resolve: com.github.lzyzsd:circleprogress:1.2.1 HOT 4
- ArcProgress.setProgress can generate java.lang.NumberFormatException
- Can I change the startangle in ArcProgress?
- checksum for circleprogress-1.2.1.aar does not match on jitpack.io HOT 2
- Could not find com.github.lzyzsd:circleprogress:1.2.4 HOT 6
- Could not set custom font to Text in ArcProgressbar
- Arc Progress Crash On Persian Language Apps
- setProgress Float issue
- Solve the innerText adaptation problem of different Android systems / DonutProgress
- Secondary Progress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleprogress.