Git Product home page Git Product logo

stepview's Introduction

StepView

StepView is a step indicator like this:

Capture

How to use

Gradle dependency Make sure jcenter was declared in your root build.gradle file:

repositories {
    jcenter()
}

Then add this dependency, modify the version to the latest version.

dependencies {
    compile 'com.githang:stepview:0.1'
}

Layout Code

    <com.githang.stepview.StepView
        android:id="@+id/step_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/white"
        android:paddingBottom="8dp"
        android:paddingTop="8dp"/>

Java Code

        mStepView = (StepView) findViewById(R.id.step_view);
        List<String> steps = Arrays.asList(new String[]{"输入手机", "验证手机", "设置密码", "注册成功"});
        mStepView.setSteps(steps);

Support attributes:

You can use these attributes to custom the StepView:

    <attr name="svCircleColor" format="color"/>
    <attr name="svTextColor" format="color"/>
    <attr name="svSelectedColor" format="color"/>
    <attr name="svFillRadius" format="dimension"/>
    <attr name="svStrokeWidth" format="dimension"/>
    <attr name="svLineWidth" format="dimension"/>
    <attr name="svTextSize" format="dimension"/>
    <attr name="svDrawablePadding" format="dimension"/>

stepview's People

Contributors

msdx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stepview's Issues

How to change stepview's title text color only.

Actually, I have used "svCircleColor" & "svTextColor" method to change the colour of the

step view. Now what I want is when any step is selected then I just want to change the colour of the inside circle but not its title colour.
Right now it's looking like as in below image I just want its title text to be in white colour when selected.

stepview

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.