Skip to content

Customizable progress indicator in the form of 2D geometric shapes

License

Notifications You must be signed in to change notification settings

vbohush/geometric-progress-view

Repository files navigation

GeometricProgressView

Build Status API Android Arsenal MaterialUps

Customizable progress indicator in the form of 2D geometric shapes

Usage

<net.bohush.geometricprogressview.GeometricProgressView
    android:id="@+id/progressView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:gp_type="triangle"
    app:gp_number_of_angles="7"
    app:gp_color="@android:color/black"
    app:gp_duration="800"
    app:gp_figure_padding="3dp" />

Customize programmatically

GeometricProgressView progressView = (GeometricProgressView) findViewById(R.id.progressView);
progressView.setType(TYPE.KITE);
progressView.setNumberOfAngles(6);
progressView.setColor(Color.parseColor("#00897b"));
progressView.setDuration(1000);
progressView.setFigurePadding(getResources().getDimensionPixelOffset(R.dimen.figure_padding));

Download

Gradle

dependencies {
  compile 'net.bohush.geometricprogressview:geometricprogressview:1.1.1'
}

License

Copyright 2017 Viktor Bohush

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Customizable progress indicator in the form of 2D geometric shapes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages