EasySpans is a Kotlin library for simplifying text styling in Android applications. It provides two sub-libraries:
- Legacy: For traditional Android View-based text styling.
- Compose: For Jetpack Compose-based text styling.
Add the following to your project’s build.gradle:
dependencies {
implementation("com.github.maxime-kouemo.EasySpans:compose:1.0.9")
implementation("com.github.maxime-kouemo.EasySpans:legacy:1.0.9")
}Add the Maven repository to your settings.gradle:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}- Legacy Module: For use with Android’s legacy View system.
- Compose Module: For use with Jetpack Compose.
Copyright 2025 by Maxime Kouemo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.