MCPcopy Index your code
hub / github.com/VictorAlbertos/BreadcrumbsView

github.com/VictorAlbertos/BreadcrumbsView @0.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.4 ↗ · + Follow
46 symbols 114 edges 7 files 4 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.3'
}

Usage

XML inflation

Define a BreadcrumbsView in xml layout as follows:

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

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

createDot
called by 2
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/DotView.java
animateFromVisitedStepToNextStep
called by 2
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/DotView.java
createSeparator
called by 2
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/SeparatorView.java
init
called by 2
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/PropertiesHelper.java
createSteps
called by 2
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/BreadcrumbsView.java
animateFromNextStepToVisitedStep
called by 1
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/DotView.java
animateFromNextStepToVisitedStep
called by 1
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/SeparatorView.java
getCurrentStep
called by 1
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/BreadcrumbsView.java

Shape

Method 37
Class 8
Interface 1

Languages

Java100%

Modules by API surface

test-sample/src/androidTest/java/io/victoralbertos/breadcumbsview/Helpers.java11 symbols
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/BreadcrumbsView.java11 symbols
test-sample/src/androidTest/java/io/victoralbertos/breadcumbsview/BreadcrumbsActivityTest.java8 symbols
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/SeparatorView.java5 symbols
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/DotView.java5 symbols
test-sample/src/main/java/io/victoralbertos/breadcumbsview/BreadcrumbsActivity.java4 symbols
breadcrumbs-view/src/main/java/io/victoralbertos/breadcumbs_view/PropertiesHelper.java2 symbols

For agents

$ claude mcp add BreadcrumbsView \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact