dlazaro66 / wheelindicatorview Goto Github PK
View Code? Open in Web Editor NEWA 'Google Fit' like activity indicator for Android
License: Apache License 2.0
A 'Google Fit' like activity indicator for Android
License: Apache License 2.0
I am drawing two arc in WheelIndicatorView using following color codes #cc0000(dark red) & #66cc0000(light red). I have added dark red first and then light red but there is a dot(.) with dark red color left at the end(see the attachment). Below is my code -
verifiedWheel = new WheelIndicatorItem(verified , getResources().getColor(R.color.red));
mWheelIndicatorView.addWheelIndicatorItem(20);
connectedWheel = new WheelIndicatorItem(connected , getResources().getColor(R.color.light_red));
mWheelIndicatorView.addWheelIndicatorItem(50);
mWheelIndicatorView.setFilledPercent(70);
mWheelIndicatorView.startItemsAnimation();
first of all, thanks for your endeavor, and this lib is of great help.
However, I encountered frame drop problem.
Here is the situation, I used several fragments with WheelIndicatorView, and when I, unfortunately , try to change my fragment, it drops even hundreds of frames shown in the logcat. And I believe it must be the animation of wheelindicatorview that reduced the performance.
And thanks ahead.
I intend to try and display a few WheelIndicatorViews below one another in a scrolling layout, however I can only manage to actually get one on the screen and even then it stops the layout scrolling. Here is the XML that I have used for my layout but just no luck:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:fillViewport="true">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.dlazaro66.wheelindicatorview.WheelIndicatorView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/wheel_indicator_view"
app:itemsLineWidth="13dp" />
<com.dlazaro66.wheelindicatorview.WheelIndicatorView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/wheel_indicator_view2"
app:itemsLineWidth="13dp" />
</LinearLayout>
</ScrollView>
It is missing the actual text on the center of the wheel.
Any plan to update it?
Let library users set an animation interpolator to customize WheelItems animation
I noticed that the default animation goes from very smooth at the start to super jerky when it's about to end. It would be nice if the animation was smooth during the entire duration. Tested on my Nexus 5.
Very nice library by the way!
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.