当背景图像为白色时,不显示操作栏项目

Actionbar items are not shown when the background image is white

我将 CoordinatorLayoutAppBarLayout 与背景图片一起使用来创建以下效果:

但是,当顶部背景为白色时,操作栏的控件对人眼不可见(或几乎不可见):

我喜欢 material 设计,但这对我来说似乎有点奇怪 - 在这些情况下必须向下滚动以便 AppBar 固定在顶部才能看到操作。

很多应用程序都使用这种设计,所以我想人们对此表示满意吧?我应该顺其自然吗?

Imagery 上的页面在 "Text protection" 上有一个部分。从那里引用:

To make typography legible on top of imagery, apply text protection in the form of scrims. Scrims are lightweight, translucent material layers.

因此,如果您想确保文本清晰可辨,请在 Toolbar 中添加 scrim,例如(如果无法编辑图像)View 背景由可绘制的带有颜色渐变的形状构成。