• Stars
    star
    684
  • Rank 66,068 (Top 2 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A customizable Android view for paginated forms

BreadcrumbsView

Android Arsenal

A customizable Android view which shows the current step of a given series. Its main purpose is to provide a contextual reference for paginated forms.

Screenshots

SetUp

Add to top level gradle.build file

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

Add to app module gradle.build file

dependencies {
    compile 'com.github.VictorAlbertos:BreadcrumbsView:0.0.4'
}

Usage

XML inflation

Define a BreadcrumbsView in xml layout as follows:

  <io.victoralbertos.breadcumbs_view.BreadcrumbsView
      android:id="@+id/breadcrumbs"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      app:numberOfSteps="5"
      app:visitedStepBorderDotColor="@color/colorVisited"
      app:visitedStepFillDotColor="@color/colorVisited"
      app:nextStepBorderDotColor="@color/colorNext"
      app:nextStepFillDotColor="@color/colorNext"
      app:visitedStepSeparatorColor="@color/colorVisited"
      app:nextStepSeparatorColor="@color/colorNext"
      app:radiusDot="@dimen/radius_dot"
      app:sizeDotBorder="@dimen/size_dot_border"
      app:heightSeparator="@dimen/height_separator"/>

Among the previous custom attributes, only app:numberOfSteps is mandatory, requiring to be an integer value greater than 1.

Moving between steps

Once instantiated the instance of BreadcrumbsView, use breadcrumbs.nextStep() to move to the next step, and breadcrumbs.prevStep() to move to the previous one. If not steps are left to move backward or forward, an IndexOutOfBoundsException is thrown.

Survive config changes

In order to retain the current step between config changes, use breadcrumbs.setCurrentStep(int). You must call it before the view is measured. Otherwise, it throws an IllegalStateException.

Examples

The module test-sample contains both a minimal example and a UI test driven by Espresso.

More Repositories

1

RxCache

Reactive caching library for Android and Java
Java
2,375
star
2

RxActivityResult

A reactive-tiny-badass-vindictive library to break with the OnActivityResult implementation as it breaks the observable chain.
Java
595
star
3

RxSocialConnect-Android

OAuth RxJava extension for Android.
Java
257
star
4

SwipeCoordinator

A coordinator layout for Android views to animate and typify touch events as swipe gestures
Java
253
star
5

ReactiveCache

A reactive cache for Android and Java which honors the reactive chain.
Java
242
star
6

Mockery

Android and Java library for mocking and testing networking layers with built-in support for Retrofit.
Java
145
star
7

RxCacheSamples

How to use RxCache for both Android and Java projects
Java
116
star
8

RxFcm

RxJava extension for Android Firebase Cloud Messaging (aka fcm).
Java
115
star
9

RxPermissionsResult

Ask for permissions without breaking the observable chain.
Java
109
star
10

DeviceAnimationTestRule

A JUnit rule to disable and enable device animations
Kotlin
106
star
11

RxGcm

[DEPRECATED] RxJava extension for Android Google Cloud Messaging (aka gcm).
Java
95
star
12

Jolyglot

Agnostic Json abstraction to perform data binding operations for Android and Java.
Java
70
star
13

RestAPIParseAuthCleanAndroid

An android implementation of an authentication system based on the Parse Api using the design patters suggested by Robert C. Martin (aka Uncle Bob) on his “clean architecture”.
Java
45
star
14

KDirtyAndroid

A dirty approach for truly client Android applications using Kotlin
Kotlin
17
star
15

DirtyAndroid

A dirty approach for truly client Android applications
Java
15
star
16

RxLifecycleInterop

[DEPRECATED] Workaround for using RxLifecycle with RxJava2
Java
10
star
17

Pacman

The classic video game Pacman for iOS and Android made with Unity 2d
C#
9
star
18

ml_technical_analysis

A machine learning approach integrating technical analysis to forecast stock prices
Python
8
star
19

EventBus-Samples

A simple demonstration about how to use EventBus with Activities, Fragments and Services on Android.
Java
7
star
20

android-kotlin-adoption

Kotlin adoption on the Android open source community
Python
6
star
21

Near-friends

App to know where your contacts are at every time
Java
3
star
22

bs-blockchain-hackathon-team4

BS Blockchain Hackathon Team 4 Repo
JavaScript
2
star
23

github-pr-latency-ml

A failed attempt (so far) to predict Github Pull Request latency.
Python
1
star
24

kotlin-apuntes

Kotlin
1
star