Minimum api level

Setup

Add dependencies in your build.gradle

dependencies {
// Core library.
compile "com.saantiaguilera.graphflow:core:<latest_version>"// For using it with fragments. Brings support-fragments
compile "com.saantiaguilera.graphflow:fragments:<latest_version>"// For using it with views
compile "com.saantiaguilera.graphflow:views:<latest_version>"// For using it with conductor
compile "com.saantiaguilera.graphflow:conductor:<latest_version>"
}

Usage

Create a Graph with nodes and connections. Lets say we have a signup application where:

Create a node switcher! Node switcher is the class in charge of switching a node for another and make them "rendereable"

// Following the example, we will use a NodeViewSwitcher. If using fragments it would be the same with NodeFragmentSwitcherNodeSwitcher<View> nodeSwitcher =newNodeViewSwitcher(activityContext, R.id.viewgroup_container_id);