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

Space between viewPager and Navigation Tab Bar when badged #46

Closed
darcheville06 opened this issue Jul 26, 2016 · 2 comments
Closed

Space between viewPager and Navigation Tab Bar when badged #46

darcheville06 opened this issue Jul 26, 2016 · 2 comments

Comments

@darcheville06
Copy link

Hello,

there is a space between viewpager and navigation tab bar when badge mode is enabled, is it possible to remove this space please?

Thanks and Regards

@GIGAMOLE
Copy link
Member

Hello.
Thanks for question.
As you can see this question link directly to android layouting system. If you use my sample, you can see the TopHorizontalNtbActivity where is some code:

navigationTabBar.post(new Runnable() {
@OverRide
public void run() {
final View viewPager = findViewById(R.id.vp_horizontal_ntb);
((ViewGroup.MarginLayoutParams) viewPager.getLayoutParams()).topMargin =
(int) -navigationTabBar.getBadgeMargin();
viewPager.requestLayout();
}
});

Which provide you feature where you can do what you want.

@darcheville06
Copy link
Author

Thank you very much it works

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

No branches or pull requests

2 participants