Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Klasyfikator tekstu
Identyfikuje rozmowy, linki, wybrane fragmenty i inne podobne konstrukcje w tekście.
Ostatnia aktualizacja |
Wersja stabilna |
Kandydat do wydania |
Wersja Beta |
Wersja alfa |
23 marca 2022 r. |
- |
- |
- |
1.0.0-alpha04 |
Deklarowanie zależności
Aby dodać zależność od TextClassifier, musisz dodać repozytorium Google Maven do projektu. Więcej informacji znajdziesz w repozytorium Google Maven.
Dodaj zależności dla artefaktów, których potrzebujesz, w pliku build.gradle
aplikacji lub modułu:
Odlotowe
dependencies {
implementation "androidx.textclassifier:textclassifier:1.0.0-alpha04"
}
Kotlin
dependencies {
implementation("androidx.textclassifier:textclassifier:1.0.0-alpha04")
}
Więcej informacji o zależnościach znajdziesz w artykule Dodawanie zależności kompilacji.
Opinia
Twoja opinia pomoże nam ulepszyć Jetpacka. Jeśli zauważysz nowe problemy lub masz pomysły na ulepszenie tej biblioteki, daj nam znać. Zanim utworzysz nowy problem, zapoznaj się z dotychczasowymi problemami w tej bibliotece. Możesz dodać swój głos do istniejącego problemu, klikając przycisk z gwiazdką.
Tworzenie nowego zgłoszenia
Więcej informacji znajdziesz w dokumentacji narzędzia Issue Tracker.
Wersja 1.0.0
Wersja 1.0.0-alpha04
23 marca 2022 r.
androidx.textclassifier:textclassifier:1.0.0-alpha04
został zwolniony. Wersja 1.0.0-alfa04 zawiera te zatwierdzenia.
Zmiany interfejsu API
Poprawki błędów
- Sprawdzanie API Lint dla
MissingGetterMatchingBuilder
jest włączone w androidx (I4bbea, b/138602561)
AppCompatRatingBar
Obiekty PNG zostały zastąpione przez źródła wektorowe. Może to spowodować niewielkie zmiany w wyglądzie poszczególnych gwiazdek. (I6b99d)
TextClassifier w wersji 1.0.0-alpha03
22 stycznia 2020 r.
androidx.textclassifier:textclassifier:1.0.0-alpha03
został zwolniony. Wersja 1.0.0-alpha03 zawiera te zatwierdzenia
Nowe funkcje
Zmiany w interfejsie API
- Zmieniono nazwę z
setIncludeDefaultEntityTypes
na includeTypesFromTextClassifier
- Zmieniono nazwę z
setIncludedEntityTypes
na setIncludedTypes
- Zmiana nazwy użytkownika z
setExcludedEntityTypes
na setExcludedTypes
Poprawki błędów
Wersja 1.0.0-alpha02
7 lutego 2019 r.
androidx.textclassifier 1.0.0-alpha02
został zwolniony.
Zmiany interfejsu API
TextLinks.TextLink.getEntityType
zastępuje TextLinks.TextLink.getEntity
TextLinks.TextLink.getEntityTypeCount
zastępuje TextLinks.TextLink.getEntityCount
TextSelection.getEntityType
zastępuje TextSelection.getEntity
TextSelection.getEntityTypeCount
zastępuje `TextSelection.getEntityCount
Poprawki błędów.
- Rozwiązano problem z wyciekiem pamięci w narzędziu AndroidX TextClassificationManager. (AOSP/887354)
- Pływający pasek narzędzi: obsługuje zmiany pozycji elementu TextView. (aosp/877713)
Wersja 1.0.0-alpha01
3 grudnia 2018 r.
To pierwsza refaktoryzacja danych z TextClassifier
na androidx
. W tej wersji funkcje (android.view.textclassifier.TextClassifier
)[/reference/android/view/textclassifier/TextClassifier] (zwłaszcza Smart Linkify) są przenoszone z powrotem do poziomu API 14.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# Textclassifier\n==============\n\nAPI Reference \n[androidx.textclassifier](/reference/kotlin/androidx/textclassifier/package-summary) \nIdentifies conversations, links, selections, and other similar constructs in text. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|----------------|----------------|-------------------|--------------|--------------------------------------------------------------------------|\n| March 23, 2022 | - | - | - | [1.0.0-alpha04](/jetpack/androidx/releases/textclassifier#1.0.0-alpha04) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on TextClassifier, 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\n### Groovy\n\n```groovy\ndependencies {\n implementation \"androidx.textclassifier:textclassifier:1.0.0-alpha04\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n implementation(\"androidx.textclassifier:textclassifier:1.0.0-alpha04\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\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:878772%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=878772&template=1441952)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 1.0.0\n-------------\n\n### Version 1.0.0-alpha04\n\nMarch 23, 2022\n\n`androidx.textclassifier:textclassifier:1.0.0-alpha04` is released. [Version 1.0.0-alpha04 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/0a3d894e8fe0217f1312fb163a89ad51bf15794e..5ef5671233460b844828e14a816255dbf7904868/textclassifier/textclassifier)\n\n**API Changes**\n\n- Deprecate all the APIs in the textclassifier module ([Idc180](https://android-review.googlesource.com/#/q/Idc18063196531c0e926162fefeadf2dc5f559da1), [b/210509084](https://issuetracker.google.com/issues/210509084))\n\n**Bug Fixes**\n\n- API lint check for `MissingGetterMatchingBuilder` is enabled for androidx ([I4bbea](https://android-review.googlesource.com/#/q/I4bbeacf9869d8338a3d7086acb40bc56ec68c3f9), [b/138602561](https://issuetracker.google.com/issues/138602561))\n- `AppCompatRatingBar` PNG drawables have been replaced with vector sources. This may cause slight changes in the visual appearance of individual stars. ([I6b99d](https://android-review.googlesource.com/#/q/I6b99d3fde8d3cd275d0fc279324066bcd7f3ecd6))\n\n### TextClassifier Version 1.0.0-alpha03\n\nJanuary 22, 2020\n\n`androidx.textclassifier:textclassifier:1.0.0-alpha03` is released. [Version 1.0.0-alpha03 contains these commits](https://android.googlesource.com/platform/frameworks/support/+log/ddceab357394ac5ab55c825844f111afe9401261..0a3d894e8fe0217f1312fb163a89ad51bf15794e/textclassifier).\n\n**New features**\n\n**API changes**\n\n- `setIncludeDefaultEntityTypes` has been renamed to `includeTypesFromTextClassifier`\n- `setIncludedEntityTypes` has been renamed to `setIncludedTypes`\n- `setExcludedEntityTypes` has been renamed to `setExcludedTypes`\n\n**Bug fixes**\n\n### Version 1.0.0-alpha02\n\nFebruary 7, 2019\n\n`androidx.textclassifier 1.0.0-alpha02` is released.\n\n**API changes**\n\n- `TextLinks.TextLink.getEntityType` replaces `TextLinks.TextLink.getEntity`\n- `TextLinks.TextLink.getEntityTypeCount` replaces `TextLinks.TextLink.getEntityCount`\n- `TextSelection.getEntityType` replaces `TextSelection.getEntity`\n- `TextSelection.getEntityTypeCount` replaces \\`TextSelection.getEntityCount\n\n**Bug fixes**\n\n- Fix a memory leak issue in AndroidX TextClassificationManager. ([aosp/887354](https://android-review.googlesource.com/887354))\n- Floating Toolbar: Handle TextView position changes. ([aosp/877713](https://android-review.googlesource.com/877713))\n\n### Version 1.0.0-alpha01\n\nDecember 3, 2018\n\nThis is the first\nrefactoring of `TextClassifier` to `androidx`. This release backports\n(`android.view.textclassifier.TextClassifier`)\\[/reference/android/view/textclassifier/TextClassifier\\]\nfeatures, particularly Smart Linkify, back to API 14."]]