使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
文字
待办事项
最近更新时间 |
稳定版 |
候选版 |
Beta 版 |
Alpha 版 |
2025 年 8 月 27 日 |
- |
- |
- |
1.0.0-alpha01 |
声明依赖项
如需添加 Text 的依赖项,您必须将 Google Maven 制品库添加到项目中。如需了解详情,请参阅 Google 的 Maven 代码库。
在应用或模块的 build.gradle
文件中添加所需工件的依赖项:
Groovy
dependencies {
//TODO: Confirm these dependencies
implementation "androidx.text:text:1.0.0-alpha01"
}
Kotlin
dependencies {
//TODO: Confirm these dependencies
implementation("androidx.text:text:1.0.0-alpha01")
}
如需详细了解依赖项,请参阅添加 build 依赖项。
反馈
您的反馈将帮助我们改进 Jetpack。如果您发现了新问题,或对此库有任何改进建议,请告诉我们。创建新问题前,请先查看此库中的现有问题。您可以点击星标按钮,为现有问题投票。
创建新问题
如需了解详情,请参阅问题跟踪器文档。
此工件没有版本说明。
版本 1.0
版本 1.0.0-alpha01
2025 年 8 月 27 日
发布了 androidx.text:text-vertical:1.0.0-alpha01
。版本 1.0.0-alpha01 中包含这些提交内容。
新功能
- 一种新的竖排文本库,利用 Android 16 中新增的 VERTICAL_TEXT_FLAG 标志,主要支持日语竖排文本布局。
- 添加了
VerticalTextLayout
,可显示具有适当换行符、混合方向(例如,竖排文本中的横排拉丁字符)和 Ruby 文本的竖排文本。(8b3a10)
- 为竖排文字添加了类似斜体的样式
FontShearSpan
。(1ffd78)
- 添加了
EmphasisRun
以表示强调标记。(fe12d9)
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-27。"],[],[],null,["text \nAPI Reference \n[androidx.text](/reference/kotlin/androidx/text/package-summary) \nTODO \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|-----------------|----------------|-------------------|--------------|----------------------------------------------------------------|\n| August 27, 2025 | - | - | - | [1.0.0-alpha01](/jetpack/androidx/releases/text#1.0.0-alpha01) |\n\nDeclaring dependencies\n\nTo add a dependency on Text, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\nGroovy \n\n```groovy\ndependencies {\n //TODO: Confirm these dependencies\n implementation \"androidx.text:text:1.0.0-alpha01\"\n}\n```\n\nKotlin \n\n```kotlin\ndependencies {\n //TODO: Confirm these dependencies\n implementation(\"androidx.text:text:1.0.0-alpha01\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:779818%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=779818&template=1371638)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nThere are no release notes for this artifact.\n\nVersion 1.0\n\nVersion 1.0.0-alpha01\n\nAugust 27, 2025\n\n`androidx.text:text-vertical:1.0.0-alpha01` is released. Version 1.0.0-alpha01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/cd8ce2bdb21194a81a76325a8e65dad5d7e28681/text/text-vertical).\n\n**New Features**\n\n- A new vertical text library to support vertical text layout mainly for Japanese, by leveraging the new [VERTICAL_TEXT_FLAG](https://developer.android.com/reference/android/graphics/Paint#VERTICAL_TEXT_FLAG) flag added in Android 16.\n- Added `VerticalTextLayout` that displayed vertical text with proper line breaks, mixed orientation (e.g., horizontal Latin characters within a vertical line), and ruby text. ([8b3a10](https://android.googlesource.com/platform/frameworks/support/+/8b3a10cb8bc1ad17da5da6bb1386499453a4899e))\n- Added `FontShearSpan` for italic-like style in vertical text. ([1ffd78](https://android.googlesource.com/platform/frameworks/support/+/1ffd782e24d6143a899c18c1599a95cab0d6cf64))\n- Added `EmphasisRun` for emphasis marks. ([fe12d9](https://android.googlesource.com/platform/frameworks/support/+/fe12d9efff8394cfed4717324fe5dc648dc1e927))"]]