最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - Kotlin Mulitplatform Text Accessibility Setting Management - Stack Overflow

programmeradmin0浏览0评论

I'm currently working on a kotlin multiplatform application targeting Android and iOS. A tester for my app recently reported an issue where if the text size within the device's accessibility settings is modified, it will affect all compose multiplatform Text components. I would like to modify this behavior or disable it altogether.

Defining staticfontSize within each Text component, however the accessibility settings still seem to override this behavior.

Text(
                       "This is Some Text",
                       color = Color.Black,
                       style = MaterialTheme.typography.h4.copy(
                           fontFamily = FontFamily.SansSerif,
                           fontWeight = FontWeight.Bold,
                           fontSize = 16.sp
                       )
                   )
发布评论

评论列表(0)

  1. 暂无评论