文本分类器
最新更新 | 稳定版 | 发布候选版 | Beta 版 | Alpha 版 |
---|---|---|---|---|
2022 年 3 月 23 日 | - | - | - | 1.0.0-alpha04 |
声明依赖项
要添加 TextClassifier 的依赖项,您必须将 Google Maven 仓库添加到您的项目中。如需了解更多信息,请参阅Google 的 Maven 仓库。
在您的应用或模块的 build.gradle
文件中添加所需工件的依赖项
Groovy
dependencies { implementation "androidx.textclassifier:textclassifier:1.0.0-alpha04" }
Kotlin
dependencies { implementation("androidx.textclassifier:textclassifier:1.0.0-alpha04") }
如需了解有关依赖项的更多信息,请参阅添加构建依赖项。
反馈
您的反馈有助于改进 Jetpack。如果您发现新问题或对改进此库有任何想法,请告诉我们。在创建新问题之前,请查看此库中的现有问题。您可以通过点击星形按钮为您支持的现有问题投票。
如需了解更多信息,请参阅问题跟踪器文档。
版本 1.0.0
版本 1.0.0-alpha04
2022 年 3 月 23 日
androidx.textclassifier:textclassifier:1.0.0-alpha04
已发布。1.0.0-alpha04 版本包含这些提交。
API 更改
- 弃用文本分类器模块中的所有 API (Idc180, b/210509084)
Bug 修复
- androidx 已启用
MissingGetterMatchingBuilder
的 API lint 检查 (I4bbea, b/138602561) AppCompatRatingBar
PNG 可绘制对象已替换为矢量源。这可能会导致单个星星的视觉外观略有变化。(I6b99d)
TextClassifier 版本 1.0.0-alpha03
2020 年 1 月 22 日
androidx.textclassifier:textclassifier:1.0.0-alpha03
已发布。1.0.0-alpha03 版本包含这些提交。
新功能
API 更改
setIncludeDefaultEntityTypes
已重命名为includeTypesFromTextClassifier
setIncludedEntityTypes
已重命名为setIncludedTypes
setExcludedEntityTypes
已重命名为setExcludedTypes
Bug 修复
版本 1.0.0-alpha02
2019 年 2 月 7 日
androidx.textclassifier 1.0.0-alpha02
已发布。
API 更改
TextLinks.TextLink.getEntityType
替代TextLinks.TextLink.getEntity
TextLinks.TextLink.getEntityTypeCount
替代TextLinks.TextLink.getEntityCount
TextSelection.getEntityType
替代TextSelection.getEntity
TextSelection.getEntityTypeCount
替代 `TextSelection.getEntityCount
Bug 修复
- 修复 AndroidX TextClassificationManager 中的内存泄漏问题。(aosp/887354)
- 浮动工具栏:处理 TextView 位置更改。(aosp/877713)
版本 1.0.0-alpha01
2018 年 12 月 3 日
这是 TextClassifier
到 androidx
的首次重构。此版本将 (android.view.textclassifier.TextClassifier
)[/reference/android/view/textclassifier/TextClassifier] 功能(特别是智能链接)回溯到 API 14。