小编lei*_*ooo的帖子

Jetpack Compose 文本显示混淆

如果代码是这样的:

Text(
    "Text with background",
    Modifier.drawBackground(Color.Magenta, RectangleShape).padding(10.dp)
)
Run Code Online (Sandbox Code Playgroud)

首先 drawBackground 第二做填充

Text(
    "Text with background",
    Modifier.padding(10.dp).drawBackground(Color.Magenta, RectangleShape)
)
Run Code Online (Sandbox Code Playgroud)

首先做填充第二个drawBackground

喷气背包组合配置

composeOptions {
    kotlinCompilerVersion "1.3.70-dev-withExperimentalGoogleExtensions-20200424"
    kotlinCompilerExtensionVersion = "0.1.0-dev10"
}

implementation 'androidx.ui:ui-framework:0.1.0-dev10'
implementation 'androidx.ui:ui-layout:0.1.0-dev10'
implementation 'androidx.ui:ui-material:0.1.0-dev10'
implementation 'androidx.ui:ui-tooling:0.1.0-dev10'
Run Code Online (Sandbox Code Playgroud)

android android-jetpack-compose

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

标签 统计

android ×1

android-jetpack-compose ×1