chilijung / Android Stepsview
Licence: apache-2.0
A more complete version of stepsViews in android
Stars: ✭ 244
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Android Stepsview
Facon
Tiny utility (272B) to create DOM elements with manner.
Stars: ✭ 212 (-13.11%)
Mutual labels: view
Laravel Tag Helper
Add powerful HTML tag helpers to your Laravel application
Stars: ✭ 227 (-6.97%)
Mutual labels: view
Artist
An artist creates views. Artist is a Gradle plugin that codegens a base set of Android Views.
Stars: ✭ 208 (-14.75%)
Mutual labels: view
Goview
Goview is a lightweight, minimalist and idiomatic template library based on golang html/template for building Go web application.
Stars: ✭ 213 (-12.7%)
Mutual labels: view
React Native Popover View
A well-tested, adaptable, lightweight <Popover> component for react-native
Stars: ✭ 191 (-21.72%)
Mutual labels: view
Slidemenulayout
🔥An android slide menu that supports left and right swipes and slides with parallax.(一个支持左右滑动并带有视差滑动效果的安卓侧滑菜单控件.仿[QQ/探探侧滑])
Stars: ✭ 235 (-3.69%)
Mutual labels: view
Android 3d Layout
Wow effect, transform your layout into 3D views
Stars: ✭ 199 (-18.44%)
Mutual labels: view
Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (-9.02%)
Mutual labels: view
Swiftconfettiview
Swift Confetti View ! Who doesn't like confetti? 🎉🎉
Stars: ✭ 193 (-20.9%)
Mutual labels: view
Foregroundviews
Views that supports a foreground, like FrameLayout does
Stars: ✭ 215 (-11.89%)
Mutual labels: view
Shadowimageview
🔥可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect
Stars: ✭ 2,560 (+949.18%)
Mutual labels: view
Transition
Easy interactive interruptible custom ViewController transitions
Stars: ✭ 2,566 (+951.64%)
Mutual labels: view
Android-stepsView
A more complete version of android stepsView library.
Demo
Install
add your build.grade
:
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.canner:android-stepsview:<VERSION>'
}
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].