远程撰写

  
Remote Compose 是一个用于为远程 surface 创建界面的框架
最近更新时间 稳定版 候选版 Beta 版 Alpha 版
2026 年 1 月 28 日 - - - 1.0.0-alpha03

声明依赖项

如需添加 compose-remote 的依赖项,您必须将 Google Maven 制品库添加到项目中。如需了解详情,请参阅 Google 的 Maven 代码库

在应用或模块的 build.gradle 文件中添加所需工件的依赖项:

Groovy

dependencies {
    implementation "androidx.compose.remote:remote-core:1.0.0-alpha03"

    // Use to create Remote Compose documents
    implementation "androidx.compose.remote:remote-creation:1.0.0-alpha03"
    implementation "androidx.compose.remote:remote-creation-core:1.0.0-alpha03"
    implementation "androidx.compose.remote:remote-creation-android:1.0.0-alpha03"
    implementation "androidx.compose.remote:remote-creation-jvm:1.0.0-alpha03"
    implementation "androidx.compose.remote:remote-creation-compose:1.0.0-alpha03"

    // Use to render a Remote Compose document
    implementation "androidx.compose.remote:remote-player-core:1.0.0-alpha03"
    implementation "androidx.compose.remote:remote-player-view:1.0.0-alpha03"

    implementation "androidx.compose.remote:remote-tooling-preview:1.0.0-alpha03"
}

Kotlin

dependencies {
    implementation("androidx.compose.remote:remote-core:1.0.0-alpha03")

    // Use to create Remote Compose documents
    implementation("androidx.compose.remote:remote-creation:1.0.0-alpha03")
    implementation("androidx.compose.remote:remote-creation-core:1.0.0-alpha03")
    implementation("androidx.compose.remote:remote-creation-android:1.0.0-alpha03")
    implementation("androidx.compose.remote:remote-creation-jvm:1.0.0-alpha03")
    implementation("androidx.compose.remote:remote-creation-compose:1.0.0-alpha03")

    // Use to render a Remote Compose document
    implementation("androidx.compose.remote:remote-player-core:1.0.0-alpha03")
    implementation("androidx.compose.remote:remote-player-view:1.0.0-alpha03")

    implementation("androidx.compose.remote:remote-tooling-preview:1.0.0-alpha03")
}

如需详细了解依赖项,请参阅添加 build 依赖项

反馈

您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。

创建新问题

如需了解详情,请参阅问题跟踪器文档

版本 1.0

版本 1.0.0-alpha03

2026 年 1 月 28 日

发布了 androidx.compose.remote:remote-*:1.0.0-alpha03。版本 1.0.0-alpha03 中包含这些提交内容

新功能

  • 支持 BorderModifier 0afd343 中不同的形状和 RemoteColors
  • 添加 CombinedAction 以支持点击事件的多个操作 10e16a2

API 变更

  • 迁移了 RemoteColorRemoteBitmap 的 API,以使用 Compose 类型,而不是直接公开 Android 类型 a9bfbb8
  • 引入 RemoteDensity 类型,以确定是在播放器上评估密度(当为远程设备生成文档时),还是内联表达式(以优化同一设备上的文档大小)54352bb
  • RemoteState constantValueOrNull 重命名(I6ad5cb/467050397

版本 1.0.0-alpha02

2026 年 1 月 14 日

发布了 androidx.compose.remote:remote-*:1.0.0-alpha02。版本 1.0.0-alpha02 中包含这些提交内容

新功能

  • 为 CoreText 添加了最小/最大字号。I7bd3c

API 变更

bug 修复

  • 修复了重新布局后的滚动位置问题,并添加了对边缘效果的支持 (6d4551)

版本 1.0.0-alpha01

2025 年 12 月 17 日

发布了 androidx.compose.remote:remote-*:1.0.0-alpha01。版本 1.0.0-alpha01 中包含这些提交内容

  • Remote Compose 是一个用于为远程 surface 创建界面的框架。