avi*_*ran 2 android android-jetpack-compose
有没有办法在使用时标记屏幕以供可访问性Jetpack Compose?出现以下错误:
该商品可能没有屏幕阅读器可读的标签。
从我所有应用程序屏幕的 Google Play 预发布报告中,看不到可以在哪里使用内容元数据“标记”可组合项。
您可以遵循辅助功能指南。基本上,语义修改器将允许您向可组合项添加内容描述。就像是:
Modifier.semantics {
this.contentDescription = "Custom content description" }
)
Run Code Online (Sandbox Code Playgroud)
注意: 的调用Modifier.semantics()应该从组件本身内部调用。它并不意味着添加到作为函数参数传递的修饰符堆栈中。