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

Set some tab with title and other not #34

Closed
darcheville06 opened this issue Jul 5, 2016 · 12 comments
Closed

Set some tab with title and other not #34

darcheville06 opened this issue Jul 5, 2016 · 12 comments

Comments

@darcheville06
Copy link

Hello,

is it possible to have tab elements with title and other with no title in same tab bar ?

Thanks and Regards

@darcheville06
Copy link
Author

When i do that :
add(new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.tab_bar_icone_missions),
Color.parseColor("#000000")
).title(getString(R.string.tab_bar_missions))
.build());

                add(new NavigationTabBar.Model.Builder(
                        getResources().getDrawable(R.drawable.icone_push_tab),
                        Color.parseColor("#000000")
                ).title("").build());

i have no title on the second tab but the icon is small

@darcheville06 darcheville06 changed the title Set some with title and other not Set some tab with title and other not Jul 5, 2016
@GIGAMOLE
Copy link
Member

GIGAMOLE commented Jul 5, 2016

Hello. Thanks for help wanted. What title mode do you use? I have tried it many times and there no small icons.

@darcheville06
Copy link
Author

Thanks for your help. I am using :
<com.gigamole.navigationtabbar.ntb.NavigationTabBar
android:id="@+id/navigationTabBar"
android:layout_width="match_parent"
android:layout_height="90dp"
app:ntb_badge_gravity="top"
app:ntb_badge_position="right"
app:ntb_badged="false"
app:ntb_scaled="true"
app:ntb_tinted="true"
app:ntb_title_mode="all"
app:ntb_titled="true"
app:ntb_swiped="true"/>

@darcheville06
Copy link
Author

I have small icons with no title when im using
add(new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.icone_push_tab),
Color.parseColor("#000000")
).title("").build());

@GIGAMOLE
Copy link
Member

GIGAMOLE commented Jul 5, 2016

Can you provide any screenshots?

@GIGAMOLE
Copy link
Member

GIGAMOLE commented Jul 5, 2016

Try to set space symbol on tab symbol in title, nor "".

@darcheville06
Copy link
Author

tab_bar1

@darcheville06
Copy link
Author

(the selected tab) ok i will try

@darcheville06
Copy link
Author

it does not work :/

@darcheville06
Copy link
Author

i put a space symbol in title(" ") but it does the same

@GIGAMOLE
Copy link
Member

GIGAMOLE commented Jul 5, 2016

Ohhh. You about that. There no feature to do the icon at the center, cause all icons must be in all level. Thanks.

@GIGAMOLE GIGAMOLE closed this as completed Jul 5, 2016
@darcheville06
Copy link
Author

Ah ok :/,

Thanks and Regards

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