Fixed
Status Update
Comments
sg...@google.com <sg...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 4f89be6a79b8b8c0b0d375965110d122a2323d1e
Author: Shalom Gibly <sgibly@google.com>
Date: Wed Sep 07 12:39:29 2022
Fix setting a transparent color for small app bars
Reverts part of the change at aosp/2189523 to allow setting a
transparent color background for small top app bars.
Fixes: 245575782
Test: AppBarTest & manual
Relnote: "Fix to allow setting a transparent background for small
Material 3 top app bars."
Change-Id: I645e29cd35cefb6e8effb2e455b53c5ff777568a
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/AppBar.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/AppBarTest.kt
https://android-review.googlesource.com/2209896
Branch: androidx-main
commit 4f89be6a79b8b8c0b0d375965110d122a2323d1e
Author: Shalom Gibly <sgibly@google.com>
Date: Wed Sep 07 12:39:29 2022
Fix setting a transparent color for small app bars
Reverts part of the change at aosp/2189523 to allow setting a
transparent color background for small top app bars.
Fixes: 245575782
Test: AppBarTest & manual
Relnote: "Fix to allow setting a transparent background for small
Material 3 top app bars."
Change-Id: I645e29cd35cefb6e8effb2e455b53c5ff777568a
M compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/AppBar.kt
M compose/material3/material3/src/androidAndroidTest/kotlin/androidx/compose/material3/AppBarTest.kt
na...@google.com <na...@google.com> #3
This bug was linked in a change in the following release(s):
androidx.compose.material3:material3:1.0.0-beta03
de...@gmail.com <de...@gmail.com> #4
The MediumTopAppBar is still broken when expanded.
sg...@google.com <sg...@google.com> #5
As the fix comment implies, we only fixed the issue for Small top app bars. Can you please open a new issue for the Medium and Large?
ph...@gmail.com <ph...@gmail.com> #6
Issue for Medium and Large Top App Bars:
Description
Starting with
1.0.0-beta02
, trying to set the container color of a TopAppBar to be transparent no longer works.It looks like inhttps://android-review.googlesource.com/c/platform/frameworks/support/+/2189523 the behavior was changed so that there is always a
Surface
with the default color underneath the TopAppBar, whose color can't be configured to be transparent.Example usage:https://github.com/android/nowinandroid/blob/main/feature-foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt#L143-L145