How to set elevation to Bottom navigation

后端 未结 3 1171
误落风尘
误落风尘 2021-02-19 08:46

So by the support V25. We have new component called Bottom navigation.

Follow the Design guidelines, the Bottom Navigation\'s elevation should

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 09:34

    Elevation has been fixed in the Android material components 1.1.0 (alpha) release according to this commit.

    Edit

    for those wondering, this is how you add the new depdendency:

    dependencies {
        // ...
        implementation 'com.google.android.material:material:1.1.0-alpha02'
        // ...
    }
    

    More information about getting started can be found here and info about releases can be found here.

    Cheers!

提交回复
热议问题