All Projects → imaNNeoFighT → Stepbarview

imaNNeoFighT / Stepbarview

Licence: apache-2.0
Step Bar View (make your own customized StepBar)

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Stepbarview

Arcchartview
Arc Chart View (Draw Creative Statistic Arc Charts)
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest, customview
Multisearchview
Yet another built-in animated search view for Android.
Stars: ✭ 837 (+762.89%)
Mutual labels:  custom, customview
Testleavesloading
Android 自定义 View 之 LeavesLoading
Stars: ✭ 55 (-43.3%)
Mutual labels:  custom, customview
Android Slidr
Another android slider / seekbar, but different :-)
Stars: ✭ 326 (+236.08%)
Mutual labels:  custom, bar
Polybar
A fast and easy-to-use status bar
Stars: ✭ 9,604 (+9801.03%)
Mutual labels:  hacktoberfest, bar
Angular Shepherd
An Angular wrapper for the site tour library Shepherd
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Sharedchamber
Android Secure SharedPreferences Using Facebook Conceal Encryption
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Calculadora Do Cidadao
💵 Tool for Brazilian Reais monetary adjustment/correction
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Researchpapernotes
Initiative to read research papers
Stars: ✭ 97 (+0%)
Mutual labels:  hacktoberfest
Picam
Elixir library used to capture MJPEG video on a Raspberry Pi using the camera module.
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Lara Lens
Laravel package for display diagnostic (config, database, http connections...)
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Protoc Gen Gotag
Add custom struct tags to protobuf generated structs
Stars: ✭ 97 (+0%)
Mutual labels:  custom
Lax
IRC client built with Electron & React
Stars: ✭ 95 (-2.06%)
Mutual labels:  hacktoberfest
Kogito Examples
Kogito examples - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Python Sdk
🐍 Client library to use the IBM Watson services in Python and available in pip as watson-developer-cloud
Stars: ✭ 1,342 (+1283.51%)
Mutual labels:  hacktoberfest
Fusion
Fusion is for now an idea about how to grow Nim's ecosystem without the pain points of more traditional approaches.
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Texture Synthesis
🎨 Example-based texture synthesis written in Rust 🦀
Stars: ✭ 1,337 (+1278.35%)
Mutual labels:  hacktoberfest
Iptables
Development repository for Chef Cookbook iptables
Stars: ✭ 96 (-1.03%)
Mutual labels:  hacktoberfest
Python Cheatsheet
Basic Cheat Sheet for Python (PDF, Markdown and Jupyter Notebook)
Stars: ✭ 1,334 (+1275.26%)
Mutual labels:  hacktoberfest
Workadventure
A collaborative web application (virtual office) presented as a 16-bit RPG video game
Stars: ✭ 1,326 (+1267.01%)
Mutual labels:  hacktoberfest

License APK Android Arsenal

Step Bar View

You can use this library to have a step bar.

It can be used in pages that you have some steps to reach.

You can download the Demo apk file (you can first adjust your StepBar in the demoApp and then implement it in code).

1 - Getting Started

By these instructions you can add this library and I will explain how to use it.

Add Maven to your root build.gradle

First of all add it in your root build.gradle at the end of the repositories:

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

Add Dependency

Add the dependency to your app build.gradle file.

dependencies
{
    implementation  'com.github.imaNNeoFighT:StepBarView:1.1.0'
    // Or in older versions : 
    // compile'com.github.imaNNeoFighT:StepBarView:1.1.0'
}

And then sync your gradle and have a cup of tea.

2 - About The View

You can simply use this View like other Views in android, just add StepBarView in your java code or xml.

View Properties

You can customize StepBarView. All of this attributes can be changed via xml or code (runtime).

Attribute Type Kotlin Description
sbv_max_count Integer maxCount your steps count (max to reach), default value is 8
sbv_steps_reached_colors Color stepsReachedColor steps reached color (steps circle reached color)
sbv_steps_unreached_colors Color stepsUnreachedColor steps unReached color (steps circle default color)
sbv_steps_line_reached_colors Color stepsLineReachedColor steps line reached color
sbv_steps_line_unreached_colors Color stepsLineUnreachedColor steps line uReached color
sbv_steps_line_height Dimensions stepsLineHeight steps line height, default value is 4dp
sbv_steps_size Dimensions stepsSize steps circle size, default value is 16dp
sbv_steps_text_color Color stepsTextColor steps text color (number that drawn on steps circle)
sbv_steps_text_size Dimensions stepsTextSize steps text size, default is 14sp
sbv_steps_line_margin_left Dimensions stepsLineMarginLeft steps line margin left (gap in left of lines), default value is 2dp
sbv_steps_line_margin_right Dimensions stepsLineMarginRight steps line margin right (gap in right of lines), default value is 2dp
sbv_allow_touch_step_to Integer allowTouchStepTo allow touch to reach step (for example if you set 3 you can touch to reach step to 3 and not more), default value is 8
sbv_show_step_index Boolean showStepIndex you can set this property false to prevent showing indexes (then just a solid circle will be drawn), default value is true
sbv_steps_stroke_size Dimensions stepsStrokeSize Stroke Size of steps , default value is 2dp
sbv_steps_stroke_reached_color Color stepsStrokeReachedColor Stroke color of reached steps
sbv_steps_stroke_unreached_color Color stepsStrokeUnReachedColor Stroke color of unReached steps
sbv_steps_stroke_current_color Color stepsStrokeCurrentColor Stroke color of current steps
sbv_show_step_stroke Boolean showStepStroke flag to showing the Stroke or not!, default is false
sbv_is_rtl Boolean isRtl flag to showing steps in RTL (Right to left), default is false
sbv_show_step_name Boolean showStepName flag to show title below the steps, default is false
sbv_is_fixed_steps_line_width Boolean isFixedStepsLineWidth flag to specify that the line widths is fixed or it should calculate depends on View width (use it when you want to achieve scrollable view)
sbv_steps_line_width Dimensions stepsLineWidth steps line width, default value is 24dp, it will ignored when isFixedStepsLineWidth is false

3 - Some Samples

Scrollable Sample

To achieve scrollable View just set isFixedStepsLineWidth : true, and put this view inside a HorizontalScrollView,

just like this:

<HorizontalScrollView
        android:id="@+id/stepBar3Container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@id/my_stepBarView2"
        app:layout_constraintBottom_toTopOf="@+id/my_stepBarView4"
        android:scrollbarSize="0dp"
        >

        <ir.neo.stepbarview.StepBarView
            android:id="@+id/my_stepBarView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:sbv_steps_size="28dp"
            app:sbv_steps_reached_colors="#fff"
            app:sbv_steps_line_reached_colors="#fff"
            app:sbv_steps_line_unreached_colors="#dbcecece"
            app:sbv_steps_unreached_colors="#dbcecece"
            app:sbv_steps_text_color="#f0f"
            app:sbv_max_count="15"
            android:paddingLeft="24dp"
            android:paddingRight="24dp"
            android:background="#f0f"
            android:paddingTop="8dp"
            android:paddingBottom="8dp"
            app:sbv_is_fixed_steps_line_width="true"
            app:sbv_steps_line_width="80dp"
            />

</HorizontalScrollView>

License

Copyright 2018 Iman Khoshabi

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.
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].