Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.yuanhoujun:stepview:0.3.0'
}
<dependency>
<groupId>com.github.yuanhoujun</groupId>
<artifactId>stepview</artifactId>
<version>0.3.0</version>
</dependency>
libraryDependencies += "com.github.yuanhoujun" % "stepview" % "0.3.0"
:dependencies [[com.github.yuanhoujun/stepview "0.3.0"]]
Android StepView,一个用来表示步骤的控件,高度可定制。
<img src="https://github.com/ZongwenSun/StepView/blob/master/image.png" width="320" height="540" />借用解决一个DT UI需求问题
Step 1. Add it in your root build.gradle at the end of repositories:
<pre> allprojects { repositories { ... maven { url 'https://jitpack.io' } } } </pre>Step 2. Add the dependency
<pre> dependencies { compile 'com.github.yuanhoujun:stepview:0.3.0' } </pre>