compose
compose_version = '1.0.2'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.activity:activity-ktx:1.3.1'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-util:$compose_version"
Text()
Image(painter = painterResource(id = R.drawable.ic_launcher_foreground), contentDescription = “无障碍说明”)
//bitmap Bitmap ImageBitmap 位图 ImageVector矢量图 Painter painterResource()
https://github.com//google/accompanist
implementation ‘dev.chrisbanes.accompanist:accompanist-coil:0.6.2’
CoilImage(data = “”,contentDescription = “”)
Modifier
Box() {
}
Column() {
上下
}
Row() {
左右
}