Comments (7)
Hi guyzk, try android:rotation attribute. It works great in DonutProgress. So, I think it should also work with CircleProgress as well.
Usage: android:rotation="rotation of the view, in degrees. " You can also use setRotation(float) method if you want to rotate your view programatically.
Try that. Hope this info helps.
from circleprogress.
@nish-d, I agree it rotates the text inside too, But I have solved that one by putting an attribute of custom:circle_text_color="@android:color/transparent",that makes the default text to transparent(i.e that user can not see) and then I put my own textview inside the progressbar using the framelayout. so its override the default rotated text, so user can see only the our textview which is inside the framelayout.
<FrameLayout>
<CircleProgress custom:circle_text_color="@android:color/transparent"></CircleProgress>
<TextView android:text="20%"></TextView>
</FrameLayout>
Hope this helps you.
from circleprogress.
This is certainly an innovative solution. Also I just found out there is a method, setStartingDegree(), that does the same.
from circleprogress.
That rotates the text inside too. Is there some other solution?
from circleprogress.
One way could be to set the progress as (100 - required progress). And change the finished_color and unfinished_color appropriately. For example, if you want to display 20% progress, set the progress to 80% and swap the colors for finished and unfinished progress.
from circleprogress.
@lzyzsd I see attr: donut_circle_starting_degree
& setStartingDegree(int startingDegree)
in master-branch
But this is not available in 1.1.0
release in maven central repository is there any plan to publish new version with these changes & features?
Related Issues
from circleprogress.
@amardeshbd please use jitpack.ioοΌ I havent update mvn center for a long time
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.