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

Center Button Looks Small #5

Closed
fuadhamidan opened this issue Aug 29, 2016 · 9 comments
Closed

Center Button Looks Small #5

fuadhamidan opened this issue Aug 29, 2016 · 9 comments
Labels

Comments

@fuadhamidan
Copy link

I'm using version 1.1.0. The center button looks small, why?

64003 line

@armcha
Copy link
Owner

armcha commented Aug 29, 2016

@fuadhamidan device model?

@fuadhamidan
Copy link
Author

@armcha Nexus 5

@armcha
Copy link
Owner

armcha commented Aug 29, 2016

@fuadhamidan will back to you

@armcha
Copy link
Owner

armcha commented Aug 29, 2016

@fuadhamidan can you send me your setup part code? I can't find case, in my nexus 5 everything is ok

@juanlabrador
Copy link

Same problem here!

    <com.luseen.spacenavigation.SpaceNavigationView
        android:id="@+id/bottom_navigation"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="bottom"
        app:active_item_color="@color/accent"
        app:centre_button_color="@color/accent"
        app:inactive_item_color="@color/white"
        app:space_background_color="@color/primary"
        app:space_item_icon_only_size="28dp" />
 mBottomNavigation.setCentreButtonIcon(R.mipmap.ic_camera);
        mBottomNavigation.addSpaceItem(new SpaceItem("HOME", R.mipmap.ic_home));
        mBottomNavigation.addSpaceItem(new SpaceItem("SEARCH", R.mipmap.ic_search));
        mBottomNavigation.addSpaceItem(new SpaceItem("NOTIFICATION", R.mipmap.ic_notification));
        mBottomNavigation.addSpaceItem(new SpaceItem("PROFILE", R.mipmap.ic_user));
        mBottomNavigation.showIconOnly();

        mBottomNavigation.setSpaceOnClickListener(new SpaceOnClickListener() {
            @Override
            public void onCentreButtonClick() {
                Log.d("onCentreButtonClick ", "onCentreButtonClick");
            }

            @Override
            public void onItemClick(int itemIndex, String itemName) {
                Log.d("onItemClick ", "" + itemIndex + " " + itemName);
            }

            @Override
            public void onItemReselected(int itemIndex, String itemName) {
                Log.d("onItemReselected ", "" + itemIndex + " " + itemName);
            }
        });

@juanlabrador
Copy link

How change color to center icon?? thanks

@fuadhamidan
Copy link
Author

@armcha I create new project using template Navigation Drawer Activity, whether it's affecting or not.

@armcha
Copy link
Owner

armcha commented Aug 30, 2016

@fuadhamidan @juanlabrador Fixed, new version will ba available today

@armcha armcha closed this as completed Aug 30, 2016
@juanlabrador
Copy link

thanks

@armcha armcha added the bug label Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants