Droppers / AnimatedBottomBar

A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges.
MIT License
1.37k stars 109 forks source link

how do i do it on java? #43

Closed LuckyD0e001 closed 2 years ago

LuckyD0e001 commented 2 years ago

Can you help me please? How do I use the library in java

zboing commented 2 years ago
    binding.bottomBar.setOnTabSelectListener(new AnimatedBottomBar.OnTabSelectListener() {
        @Override
        public void onTabSelected(int i, @Nullable AnimatedBottomBar.Tab tab, int i1, @NonNull AnimatedBottomBar.Tab tab1) {
            Log.d(TAG,""+tab1.getTitle());
        }

        @Override
        public void onTabReselected(int i, @NonNull AnimatedBottomBar.Tab tab) {

        }
    });