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

请问我如果使用google原生的BottomNavigationView来当做底部的导航,可以让导航栏选中切换成当前的主题色吗? #51

Closed
SkyHots opened this issue May 23, 2018 · 1 comment

Comments

@SkyHots
Copy link

SkyHots commented May 23, 2018

下面是我的布局代码,也就是谷歌原生的底部导航

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/window_background"
    tools:context=".ui.main.MainActivity">

    <android.support.design.widget.BottomNavigationView
        android:id="@+id/navigation"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_alignParentBottom="true"
        android:background="?android:attr/windowBackground"
        app:elevation="5dp"
        app:itemTextColor="@color/color_navigation_view"
        app:itemIconTint="@color/color_navigation_view"
        app:menu="@menu/navigation"/>

    <android.support.v4.view.ViewPager
        android:visibility="visible"
        android:id="@+id/viewPager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/navigation"
        android:overScrollMode="never">
    </android.support.v4.view.ViewPager>

</RelativeLayout>
@SkyHots
Copy link
Author

SkyHots commented May 24, 2018

I got it,thank you.

@SkyHots SkyHots closed this as completed May 24, 2018
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

1 participant