MCPcopy Index your code
hub / github.com/arbelkilani/BiColored-Progress

github.com/arbelkilani/BiColored-Progress @v1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.5 ↗ · + Follow
33 symbols 65 edges 7 files 21 documented · 64%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

BiColored Progress

License API

Awsome animated a bi-colored circular progress.

biColored

Setup

Add to your module's build.gradle:

allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

and to your app build.gradle:

dependencies {
  implementation 'com.github.arbelkilani:BiColored-Progress:v1.5'
}

Usage

<com.arbelkilani.bicoloredprogress.BiColoredProgress
        android:id="@+id/twice_colored_progress"
        android:layout_width="@dimen/dimen_150dp"
        android:layout_height="@dimen/dimen_150dp"
        android:layout_centerInParent="true"
        app:duration="4000"
        app:inner_alpha_factor="0.3"
        app:label="@string/gain"
        app:left_sided_color="@color/moss"
        app:right_sided_color="@color/warm"
        app:stroke_width="4dp"
        app:text_color="@color/waterfall"
        app:text_font="@font/averia_sans_regular"
        app:unit="kg"/>
BiColoredProgress biColoredProgress = findViewById(R.id.twice_colored_progress);
biColoredProgress.setTextFont(R.font.averia_sans_regular);
biColoredProgress.setColor(R.color.waterfall);

biColoredProgress.setUnit("kg");

Params available in all views:
  • duration (int) - duration of one animation
  • label (String) - optional
  • left_sided_color (color) - left sided color
  • right_sided_color (color) - right sided color
  • stroke_width (float) - outsider circle stroke width
  • inner_alpha_factor (float) - alpha value from outsider to inner color
  • text_color (dimension) - text value size
  • text_font (reference) - text value font family
  • unit (string) - superscript value ( length < 5)
Animation interpolator:

BiColoredProgress biColoredProgress = findViewById(R.id.twice_colored_progress);

biColoredProgress.setProgress(87f);
biColoredProgress.setAnimated(true, 4000, new BounceInterpolator());
setAnimated attributes :

/**
     * 
     * @param canAnimate : boolean, true if want to have animated progress
     * @param animationDuration : int, animation duration
     * @param interpolator : Interpolator, either basic or custom animation interpolator
 */
    public void setAnimated(boolean canAnimate, int animationDuration, Interpolator interpolator) {}

License

Copyright 2018 Belkilani Ahmed Radhouane

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.

Core symbols most depended-on inside this repo

setAnimated
called by 6
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java
init
called by 2
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java
convertDpToPixel
called by 1
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/AppUtils.java
getSweepAngle
called by 1
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java
getAlphaValue
called by 1
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java
drawProgressValue
called by 1
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java
getSpannableValue
called by 1
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java
drawInnerCircle
called by 1
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java

Shape

Method 25
Class 8

Languages

Java100%

Modules by API surface

bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/BiColoredProgress.java19 symbols
app/src/main/java/edu/arbelkilani/twicedprogressbar/MainActivity.java4 symbols
bicoloredprogress/src/test/java/com/arbelkilani/bicoloredprogress/ExampleUnitTest.java2 symbols
bicoloredprogress/src/main/java/com/arbelkilani/bicoloredprogress/AppUtils.java2 symbols
bicoloredprogress/src/androidTest/java/com/arbelkilani/bicoloredprogress/ExampleInstrumentedTest.java2 symbols
app/src/test/java/edu/arbelkilani/twicedprogressbar/ExampleUnitTest.java2 symbols
app/src/androidTest/java/edu/arbelkilani/twicedprogressbar/ExampleInstrumentedTest.java2 symbols

For agents

$ claude mcp add BiColored-Progress \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact