/ Navigation

A navigation view for Android Applications

A navigation view for Android Applications

This is a navigation view for Android Applications. It contains 4-direction buttons which can be disabled in different situations.

Layout xml:

<com.mirhoseini.navigationview.NavigationView
        android:id="@+id/navigationView"
        android:layout_width="200dp"
        android:layout_height="200dp"
        app:downButton="false" />

Code:

  navigationView = (NavigationView) findViewById(R.id.navigationView);

  // set navigation disabled color
  navigationView.setFillDisabledColor(Color.BLUE);

  // set navigation fill color
  navigationView.setFillColor(Color.RED);

  // set on Navigation Listener
  navigationView.setOnNavigationListener(this);

  // you can disable any navigation button
  navigationView.setButtonsEnabled(false, true, true, true);

USAGE

Grab via Maven:

<dependency>
  <groupId>com.mirhoseini.navigationview</groupId>
  <artifactId>navigationview</artifactId>
  <version>1.0.3</version>
  <type>pom</type>
</dependency>

or Gradle:

compile 'com.mirhoseini.navigationview:navigationview:1.0.3'

Screenshot

GitHub