AndroidDeveloperLB/AutoFitTextView
概要
利用可能なサイズと内容に応じてフォントサイズと行数を自動調整する TextView
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 更新が遅れています
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルAutoFitTextView
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):
関連プロジェクトを探す
読み込み中…