Skip to content

[BottomAppBar] BottomAppBar casts a shadow #2953

@manabu-nakamura

Description

@manabu-nakamura

#2698...

Description: BottomAppBar (https://m3.material.io/components/bottom-app-bar/overview):

  • Elevation: No shadow
  • M3: Bottom app bar has new colors, a taller container, no elevation or shadow, and contains the FAB.

unnamed9
But, the BottomAppBar casts a shadow (#2852).
180359724-25751a28-3757-45b5-8b06-88ac6bb92b48
The MaterialToolbar casts no drop shadow (#2698 (comment)).
https://m3.material.io/components/top-app-bar/overview
material-components/material-components#108

Expected behavior: The BottomAppBar casts no shadow.
Or revise the documentation.

Source code:

<androidx.coordinatorlayout.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.google.android.material.bottomappbar.BottomAppBar
        android:id="@+id/appBar"
        android:layout_width="match_parent"
        android:layout_height="?actionBarSize"
        android:layout_gravity="bottom" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

Minimal sample app repro: Test1.zip (#2852)

Android API version: 33

Material Library version: 1.7.0-rc01

Device: Emulator 31.3.10

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions