Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font style #2

Open
hitesh-kanzariya opened this issue Feb 10, 2021 · 2 comments
Open

Font style #2

hitesh-kanzariya opened this issue Feb 10, 2021 · 2 comments

Comments

@hitesh-kanzariya
Copy link

How to apply style in text ?

@Moosphan
Copy link
Owner

@HiteshKanzariya07 Good suggestion, I will support it soon later.

@Moosphan
Copy link
Owner

Moosphan commented Jul 15, 2021

@HiteshKanzariya07 Sorry, i forgot this library has this ability already. You can use BottomTabView.getTabTextView() to get the real TextView of title like this:

bottomBarLayout
                .addTab(tab_home)
                .addTab(tab_look)
                .addTab(tab_mine)
                .create(new BottomBarLayout.OnTabSelectedListener() {
                    @Override
                    public void onTabSelected(BottomTabView tab) {
                        Log.e(TAG, "onTabSelected: =="+tab.getTabPosition() );
                        +tab.getTabTextView().setTextSize(26);
                    }

                    @Override
                    public void onTabUnselected(BottomTabView tab) {
                        +tab.getTabTextView().setTextSize(16);
                    }

                    @Override
                    public void onTabReselected(BottomTabView tab) {

                    }
                });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants