Git Product home page Git Product logo

progressnevigationbar's Introduction

ProgressNavigationBar

ProgressBar Demo

Add ProgressBar to your gradle

  compile 'com.ashutosh.progress-nevigation-bar:library:1.0.0'

It is recommended to use NavigationBar in Horizontal ScrollView

	<com.library.NavigationBar
		android:id="@+id/navBar"
		android:layout_width="match_parent"
		android:layout_height="56dp"
		android:background="#ffffffff"
		android:padding="6dp"
		app:central_line_height="1dp"
		app:enable_border="true"
		app:only_border="false"
		app:tab_border_color_array="@array/border_state_colors"
		app:tab_color_array="@array/indicator_colors"
		app:tab_indicator_color="@color/darkYellow"
		app:tab_padding="48dp"
		app:tab_strok_width="3dp"
		app:tab_text_color_array="@array/text_state_colors"
		app:tab_text_size="18sp"/>

There is an array.xml which is having tab_border_color_array, tab_color_array and tab_text_color_array You can refer this file array.xml

Implement these Two Interfaces

NavigationBar.OnTabSelected, NavigationBar.OnTabClick

And Below is code to setup the NavigationBar

 	NavigationBar bar = (NavigationBar) findViewById(R.id.navBar);
    bar.setOnTabSelected(this);
    bar.setOnTabClick(this);

	bar.setTabCount(count);
    bar.animateView(3000);
    bar.setCurrentPosition(pos);

To reset navigationBar

bar.resetItems();

progressnevigationbar's People

Contributors

ashutiwari4 avatar

Stargazers

 avatar Erick Yenque avatar  avatar Vineesh kumar mk avatar

Watchers

James Cloos avatar  avatar

Forkers

ps-jimmy

progressnevigationbar's Issues

bar.setOnTabSelected(this);

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.library.NavigationBar.setOnTabSelected(com.library.NavigationBar$OnTabSelected)' on a null object reference
at com.fita.test.progressBar.onCreate(progressBar.java:30)

thi error i got how to solve this bro ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.