AnimationBottomBar

I saw a awesome bottomBar Design from dribbble,and I make it come true. just like this

but i make it a little different

and if you want to know how to make it ,you can see this

you can push issue to make it better,i'm happy to help you

How to use

in your activity xml :

 <com.mran.bottombar.AnimationBottomBar
      android:layout_width="match_parent"
      android:layout_height="100dp"
      android:id="@+id/bottomBar"
      app:textColor="@color/colorAccent"
      app:backgruond="@color/white"
      app:textSize="16sp"
      app:selectTextColor="@color/blue"
  />

In your class

 AnimationBottomBar mAnimationBottomBar;
 mAnimationBottomBar = (AnimationBottomBar) findViewById(R.id.bottom);
 mAnimationBottomBar.addItem(new BottomItem(R.drawable.h, "one"))
                    .addItem(new BottomItem(R.drawable.h, "two"))
                    .addItem(new BottomItem(R.drawable.h, "three"))
                    .addItem(new BottomItem(R.drawable.h, "four"))
                    .addItem(new BottomItem(R.drawable.h, "five"))
                    .build();

Add itemSelectedListener

mAnimationBottomBar.setItemSelectListener(new AnimationBottomBar.OnItemSelectListener() {
    @Override
    public void onItemSelectListener(int position) {
        /*do something here*/
    }
});

License

Apache