透過集合功能整理內容
你可以依據偏好儲存及分類內容。
text
TODO
最近更新時間 |
穩定版 |
候選版 |
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")
}
如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。
意見回饋
您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。
建立新問題
詳情請參閱 Issue Tracker 文件。
這個構件沒有任何版本資訊。
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
,可顯示直向文字 (含適當的換行符號)、混合方向 (例如直向行中的橫向拉丁字元) 和附註標音。(8b3a10)
- 在直向文字中新增了
FontShearSpan
,可設定類似斜體的樣式。(1ffd78)
- 新增了
EmphasisRun
,用於強調標記。(fe12d9)
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間: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))"]]