美文网首页
BottomNavigationView去波纹效果

BottomNavigationView去波纹效果

作者: Joker168 | 来源:发表于2021-01-08 11:33 被阅读0次

    主题 Theme.AppCompat.Light.NoActionBar

        <style name="Theme.Lld" parent="Theme.AppCompat.Light.NoActionBar">
            <!-- Primary brand color. -->
            <item name="colorPrimary">@color/purple_500</item>
            <item name="colorPrimaryVariant">@color/purple_700</item>
            <item name="colorOnPrimary">@color/white</item>
            <!-- Secondary brand color. -->
            <item name="colorSecondary">@color/teal_200</item>
            <item name="colorSecondaryVariant">@color/teal_700</item>
            <item name="colorOnSecondary">@color/black</item>
            <!-- Status bar color. -->
            <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
            <!-- Customize your theme here. -->
        </style>
    

    View配置

     <com.google.android.material.bottomnavigation.BottomNavigationView
            android:id="@+id/main_navigation"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/white"
            app:itemBackground="@null"
            app:itemIconTint="@null"
            app:itemTextColor="@drawable/home_navigation_color_selector"
            app:labelVisibilityMode="labeled"
            app:menu="@menu/bottom_nav_menu" />
    

    相关文章

      网友评论

          本文标题:BottomNavigationView去波纹效果

          本文链接:https://www.haomeiwen.com/subject/wkwxaktx.html