devlight / arcprogressstackview Goto Github PK
View Code? Open in Web Editor NEWPresent your progress bars in arc mode with information and total control.
License: Apache License 2.0
Present your progress bars in arc mode with information and total control.
License: Apache License 2.0
Your sample is using the tag <com.gigamole.samples.ArcProgressStackView instead of <com.gigamole.library.ArcProgressStackView
For a reason, I want to use it for a clock picker, start o'clock and end o'clock. There is not a thumb especially when the angle is 0.
Whenever there is ArcProgressStackView with Model attached to it, it's being constantly redrawn. And one of my devices' log is flooded with messages like this:
D/Surface: Surface::setBuffersDimensions(this=0x7faee0d400,w=1080,h=1920)
This can be seen even in example app.
However, on other devices there's no such messages but if you enable 'hardware layers updates' or 'gpu view updates' in developer options, you'll see exactly the same thing - ArcProgressStackView is flashed all the time.
Hi,
I am currently using 2 models and tracking two different values. I noticed that once I change the value on one of the model and call animateProgress(), both of them animate. I had a look at the demo app for some guidance, but couldn't find anything relevant. Is it possible to have a model.animateProgress() or animateProgress(model)?
Note: If I don't call the animateProgress, they work fine and each updates independently.
Also this is an awesome library ๐
Thanks
Hello
Is there any way to not show the symbol that indicates the percentage in each circle of the graph?
I would also like to comment that I have serious performance problems when I use the following attributes:
apsv_shadowed="true"
apsv_shadow_distance
apsv_shadow_angle
apsv_shadow_radius
apsv_shadow_color
On a tablet nexus 9 with Android 7.1: High battery consumption and system slowdown, especially when using fragments (with two or three fragments is enough to have those problems).
Congratulations for your library and sorry for my bad English.
thanks, regards.
I cant see the preview of the arc when the app is pushed to device.
I can see the preview in the android studio but while run time it shows nothing to me
Im not sure if i have added everything that is need ,
I just added the library through gradel and copied the xml part and tried to run but it shows nothing...
I can set the Title of Arc but if use this with Temperatures i can't change the % of percentage with ยฐ, please add this function =)
When set app:apsv_model_offset="10dp" the circles get cut by the edges of the view, the solution is in the line 827 of the ArcProgressStackView.java
Change
final float modelOffset = (mProgressModelSize * i) +
(paintOffset + shadowOffset) - (mProgressModelOffset * i);
With
final float modelOffset = (mProgressModelSize * i) +
(paintOffset + shadowOffset) + (mProgressModelOffset * i);
if you put + (mProgressModelOffset * i); works perfectly
Hope this help
Best Regards
Hello,
I would like to ask if you plan to release version 1.0.5 any time soon, as I see a few useful commits in master branch.
Thanks,
Manos
Hello ,i am form china .you project is very good .But i find a little bug in your project .When I use your lib in floatwindow ,it draw twice.I think it may because you use shadow layer,but i do not konw why.
please see the image.
There is a service in my app that contains an Asynctask that sends a broadcast during onProgressUpdate. I want to show the progress in an ArcProgressStackView in a fragment that receives the broadcast. The problem is that the progress bar is updated but it doesn't show the animation during the update between an updated number to another. As a note, If I don't send the broadcast, the progress bar, of course, doesn't show the progress, but the animation is shown from 0 immediately to 100 after analysis finished. I mean it seems that updating the progress bar from a service by a broadcast receiver is affecting on the animation.
Would you please let me know what I am missing?
How to write text in center of progressview?
I am using ArcProgressiveStackView in two different fragments. In the first one everything works fine, but in the second one I get this stacktrace when my view is initialized :
12-18 11:04:09.093 4184-4184 W/System.err: java.lang.NullPointerException
12-18 11:04:09.093 4184-4184 W/System.err: at android.graphics.Typeface.nativeCreateFromAsset(Native Method)
12-18 11:04:09.093 4184-4184 W/System.err: at android.graphics.Typeface.createFromAsset(Typeface.java:149)
12-18 11:04:09.093 4184-4184 W/System.err: at devlight.io.library.ArcProgressStackView.setTypeface(ArcProgressStackView.java:594)
12-18 11:04:09.093 4184-4184 W/System.err: at devlight.io.library.ArcProgressStackView.(ArcProgressStackView.java:212)
12-18 11:04:09.093 4184-4184 W/System.err: at devlight.io.library.ArcProgressStackView.(ArcProgressStackView.java:179)
12-18 11:04:09.093 4184-4184 W/System.err: at java.lang.reflect.Constructor.constructNative(Native Method)
12-18 11:04:09.093 4184-4184 W/System.err: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
12-18 11:04:09.093 4184-4184 W/System.err: at android.view.LayoutInflater.createView(LayoutInflater.java:595)
12-18 11:04:09.093 4184-4184 W/System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)
12-18 11:04:09.093 4184-4184 W/System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:756)
12-18 11:04:09.093 4184-4184 W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-18 11:04:09.093 4184-4184 W/System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-18 11:04:09.093 4184-4184 W/System.err: at <...>.MyFragment.onCreateView(MyFragment.java:37)
This is not causing any issues for me, but I am not using the text labels that may be impacted by this error. My fonts are located under res/font.
Hi, Thanks for this awesome library.
My question is how can I make it wrap content for my usage am using a half circle shaped ArcProgressStacView but it is eating space for a full circle. And when am hardcoding its size on some smaller screen devices it is cutting at the edges. Will you please help me out here?
Thanks
I want to add this library in my project but when i added dependency it give me error so please can u tell me where i have to write this i think i am adding in a wrong way.. reply as soon as possible
Hey
First of all, awesome library! I want to use the ArcProgressStackView in a HorizontalScrollView (in the end I want to dynamically add multiple ArcProgressStackViews programmatically) but I can't seem to make it work even via xml.
Here's what I tried:
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="40">
<com.gigamole.library.ArcProgressStackView
android:id="@+id/arc0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/double_space_horizontal_margin"
android:layout_marginStart="@dimen/double_space_horizontal_margin"
android:layout_marginRight="@dimen/double_space_horizontal_margin"
android:layout_marginEnd="@dimen/double_space_horizontal_margin"
android:layout_marginTop="@dimen/double_space_vertical_margin"
android:layout_marginBottom="@dimen/double_space_vertical_margin"
app:apsv_shadowed="true"
app:apsv_shadow_distance="1dp"
app:apsv_shadow_radius="2dp"
app:apsv_animated="true"
app:apsv_animation_duration="2000"
app:apsv_dragged="false"
app:apsv_text_color="@color/colorConsumer"
app:apsv_draw_width="15%"
app:apsv_model_bg_enabled="true"
app:apsv_start_angle="135"
app:apsv_sweep_angle="270"
app:apsv_indicator_orientation="horizontal"/>
</HorizontalScrollView>
And just nothing is shown or at least no ArcProgressStackView.
Thanks in advance for your help.
Cheers
My app manifest has tags
<application
<!--...-->
android:allowBackup="false"
android:supportsRtl="false">
and ArcProgressStackView's manifest has theirs too, but with true
values.
So i am receiving an gradle error when just add compile 'devlight.io:arcprogressstackview:1.0.4'
as you describe in README.md.
It may be fixed by adding few words about tools:node="replace"
in your readme file or just removing all values from <application>
manifest's tag of this awesome library.
P.S. It would be nice, that your library run out from-the-box without any mistakes.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.