Customizable progress indicator in the form of 2D geometric shapes
<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" />
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));
Gradle
dependencies {
compile 'net.bohush.geometricprogressview:geometricprogressview:1.1.1'
}
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.