AndroidDeveloperLB/AutoFitTextView
소개
사용 가능한 크기와 콘텐츠에 따라 글꼴 크기와 줄 수를 자동으로 조정하는 TextView
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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):
관련 프로젝트 살펴보기
불러오는 중…