在视图世界中,我们可以使用@tools:sample/*资源来获取示例文本,例如full_names、first_names、cities等dates。
据我所知,Android Studio 布局编辑器使用了这些注释,以便能够在编辑器上查看模拟数据。
在 Compose 世界中没有 xml,因此也没有@tools:sample/*.
Android Studio 有什么办法仍然可以在函数中使用这些示例测试吗@Composable?或者还有其他内置的 Compose 解决方案吗?
android android-jetpack-compose android-jetpack-compose-text