gpt4 book ai didi

android - Jetpack Compose 容器在哪里?

转载 作者:行者123 更新时间:2023-12-04 16:38:48 25 4
gpt4 key购买 nike

我从一些教程中阅读了容器

  • https://joebirch.co/android/exploring-jetpack-compose-container/
  • https://levelup.gitconnected.com/jetpack-compose-container-layout-183e655518f2

  • 它的编码如下
    @Composable
    fun Container(
    modifier: Modifier = Modifier.None,
    padding: EdgeInsets = EdgeInsets(0.dp),
    alignment: Alignment = Alignment.Center,
    expanded: Boolean = false,
    constraints: DpConstraints = DpConstraints(),
    width: Dp? = null,
    height: Dp? = null,
    children: @Composable() () -> Unit
    )
    最近在探索 Jetpack Compose 1.0.0-alpha07 ,再也看不到了。它不再受支持还是我错过了什么?
    我包括了所有我可以的图书馆,但它没有显示。
        implementation 'androidx.compose.ui:ui:1.0.0-alpha07'
    // Tooling support (Previews, etc.)
    implementation 'androidx.ui:ui-tooling:1.0.0-alpha07'
    // Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
    implementation 'androidx.compose.foundation:foundation:1.0.0-alpha07'
    // Material Design
    implementation 'androidx.compose.material:material:1.0.0-alpha07'
    // Material design icons
    implementation 'androidx.compose.material:material-icons-core:1.0.0-alpha07'
    implementation 'androidx.compose.material:material-icons-extended:1.0.0-alpha07'
    // Integration with observables
    implementation 'androidx.compose.runtime:runtime-livedata:1.0.0-alpha07'
    implementation 'androidx.compose.runtime:runtime-rxjava2:1.0.0-alpha07'

    最佳答案

    你好容器 已被删除。您可以使用邮箱 反而。
    androidx.ui: ui - *: 在 0.1.0-dev11 版本中删除。
    Source

    关于android - Jetpack Compose 容器在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64908569/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com