小编Mil*_*ent的帖子

有没有办法改变jetpack compose中的预览分辨率?

我正在为特定设备开发应用程序。我可以使用以下命令更改预览屏幕的大小

@Preview(showBackground = true, widthDp = 1080, heightDp = 1920)
Run Code Online (Sandbox Code Playgroud)

但有没有办法改变分辨率呢?屏幕好像是~480p

android android-jetpack-compose

12
推荐指数
1
解决办法
5513
查看次数

惯用的字符串分组(计算连续重复的字符)

怎样用什么成语才能达到预期的效果呢?

val input = "aaaabbbcca"

val result = input.(here do the transformations)

val output = listOf("a" to 4, "b" to 3, "c" to 2, "a" to 1)

assert(result == output)
Run Code Online (Sandbox Code Playgroud)

idioms kotlin

0
推荐指数
1
解决办法
417
查看次数

标签 统计

android ×1

android-jetpack-compose ×1

idioms ×1

kotlin ×1