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

return完全失效是什么鬼,是哪里出了问题吗? return icon 没用 return title也没用 return background也没用 #44

Open
qwasnm789 opened this issue Apr 8, 2020 · 3 comments

Comments

@qwasnm789
Copy link

    binding.hwVerticalTablayout.setTabAdapter(new TabAdapter() {
        @Override
        public int getCount() {
            return mFragments.size();
        }

        @Override
        public ITabView.TabBadge getBadge(int position) {
            return null;
        }

        @Override
        public ITabView.TabIcon getIcon(int position) {
            return new ITabView.TabIcon.Builder().setIcon(R.drawable.icon_about_us, R.drawable.icon_ip_port).build();
        }

        @Override
        public ITabView.TabTitle getTitle(int position) {
            return new TabView.TabTitle.Builder()
                    .setContent(mFragmentsTitle[position])
                    .setTextColor(R.color.colorPrimary, R.color.colorAccent)
                    .build();
        }

        @Override
        public int getBackground(int position) {
            return R.color.white;
        }
    });
@qwasnm789 qwasnm789 changed the title return return完全失效是什么鬼,是哪里出了问题吗? return icon 没用 return title也没用 return background也没用 Apr 8, 2020
@yishangfei
Copy link

@qwasnm789 哥解决了吗

@napQINLAN
Copy link

所以解决了吗

@loveanao
Copy link

loveanao commented Sep 8, 2022

用1.2.0版本..最新版有问题

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

4 participants