AndroidDeveloperLB/AutoFitTextView
Über uns
Ein TextView, der Schriftgröße und Zeilenanzahl automatisch an den verfügbaren Platz und den Inhalt anpasst
Design und MedienGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Aktualisierung verzögert
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalAutoFitTextView
A TextView that automatically fits its font and line count based on its available size and content.
This code is heavily based on this StackOverflow thread.
The sample shows how the library handles various parameters being changed on the TextView: width, height, number of lines allowed, and the content (text) itself. You can play with the various properties to see how the library handles them.
Note: The library is updated to use Kotlin DSL, modern AndroidX libraries, and has a minimum SDK requirement of 21.
Preview

Import using Gradle (Kotlin DSL)
Add JitPack to your settings.gradle.kts:
dependencyResolutionManagement {
repositories {
...
maven { url = uri("https://jitpack.io") }
}
}
Add the dependency to your module build.gradle.kts:
dependencies {
implementation("com.github.AndroidDeveloperLB:AutoFitTextView:XXX")
}
You can find the recent version here (replace XXX):
Ähnliche Projekte entdecken
Wird geladen…