MCPcopy Index your code
hub / github.com/chilijung/android-stepsview

github.com/chilijung/android-stepsview @1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2 ↗ · + Follow
54 symbols 108 edges 7 files 4 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Android-stepsView

Release

A more complete version of android stepsView library.

original version from https://github.com/anton46/Android-StepsView

Demo

Install

add your build.grade:

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
dependencies {
    compile 'com.github.canner:android-stepsview:1.1.0'
}

Usage

layout.xml

 <io.canner.stepsview.StepsView
        android:id="@+id/stepsView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />

you could also set options using chain methods

StepsView mStepsView = (StepsView) findViewById(R.id.stepview);

mStepsView.setLabels(steps)
        .setBarColorIndicator(getContext().getResources().getColor(R.color.material_blue_grey_800))
        .setProgressColorIndicator(getContext().getResources().getColor(R.color.orange))
        .setLabelColorIndicator(getContext().getResources().getColor(R.color.orange))
        .setCompletedPosition(0)
        .drawView();

Setup options in layout

<io.canner.stepsview.StepsView
    xmlns:custom="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    custom:labels="@array/labels2"      <====== set labels
    custom:labelSize="20"     <================ set label size
    custom:numOfSteps="5"     <================ set steps
    custom:circleRadius="40"     <============= set radius
    custom:progressMargin="150"     <========== set margin
    custom:completePosition="2"     <========== set complete position
    custom:barColor="@color/orange"     <====== set bar color
    custom:labelColor="@color/red"     <======= set label color
    custom:progressColor="@color/blue"     <=== set progress color
    custom:progressTextColor="@color/black"  <= set progress text color
    style="@style/stepsView"
    />

Options

setting up stepviews we use chain methods such as example above. And here is more.

setLabels(String[] labels)

set labels

setBarColorIndicator(int ResId)

set bar color

setProgressColorIndicator(int ResId)

set progress color

setLabelColorIndicator(int ResId)

set label color

setCompletePosition(int pos)

set complete step position

setLabelTextSize(float size)

set label size

setProgressStrokeWidth(float width)

set the stroke width in between step progress.

setProgressMargins(float margin)

set margins of the view

setCircleRadius(float radius)

set the steps' radius.

setProgressTextColor(int textColor)

set text color in the step.

hideProgressText(boolean hide)

hide the text in the progress.

Improvements

the original version is https://github.com/anton46/Android-StepsView with many improvements.

  • more concise text position and progress bar position
  • make labels align to center
  • add number in progress
  • add more customize options
  • support syntax in xml layout

License

Apache 2.0

Extension points exported contracts — how you extend this code

OnDrawListener (Interface)
(no doc) [1 implementers]
stepsview/src/main/java/io/canner/stepsview/StepsViewIndicator.java

Core symbols most depended-on inside this repo

setStepTotal
called by 2
stepsview/src/main/java/io/canner/stepsview/StepsViewIndicator.java
measureDimension
called by 2
stepsview/src/main/java/io/canner/stepsview/StepsViewIndicator.java
onReady
called by 2
stepsview/src/main/java/io/canner/stepsview/StepsViewIndicator.java
init
called by 1
stepsview/src/main/java/io/canner/stepsview/StepsView.java
setLabels
called by 1
stepsview/src/main/java/io/canner/stepsview/StepsView.java
setProgressColorIndicator
called by 1
stepsview/src/main/java/io/canner/stepsview/StepsView.java
setLabelColorIndicator
called by 1
stepsview/src/main/java/io/canner/stepsview/StepsView.java
setBarColorIndicator
called by 1
stepsview/src/main/java/io/canner/stepsview/StepsView.java

Shape

Method 46
Class 7
Interface 1

Languages

Java100%

Modules by API surface

stepsview/src/main/java/io/canner/stepsview/StepsViewIndicator.java22 symbols
stepsview/src/main/java/io/canner/stepsview/StepsView.java22 symbols
stepsview/src/test/java/io/canner/stepsview/ExampleUnitTest.java2 symbols
stepsview/src/androidTest/java/io/canner/stepsview/ExampleInstrumentedTest.java2 symbols
app/src/test/java/io/canner/androidstepsview/ExampleUnitTest.java2 symbols
app/src/main/java/io/canner/androidstepsview/MainActivity.java2 symbols
app/src/androidTest/java/io/canner/androidstepsview/ExampleInstrumentedTest.java2 symbols

For agents

$ claude mcp add android-stepsview \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page