gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 00:07:25 25 4
gpt4 key购买 nike

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

enter image description here

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

enter image description here

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

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

最佳答案

Imagery上的页面有一个关于“文本保护”的部分。从那里引用:

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,其背景由可绘制的带有颜色渐变的形状组成。

关于android - 当背景图像为白色时,不显示操作栏项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48736178/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com