close
Skip to content

webtoon/ReadMoreTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

215 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReadMoreTextView

Image Image

This library provides collapsible Text widgets with 'Read more' and 'Read less' text. (Including Jetpack Compose)

Collapsed Image
Expanded Image

Versions

Each release outlines the version of the AppCompat or Compose library it depends on.

View

AppCompat 1.3 (1.3.x)Maven Central
AppCompat 1.4 (1.4.x)Maven Central
AppCompat 1.5 (1.5.x)Maven Central
AppCompat 1.6 (1.6.x)Maven Central
AppCompat 1.7 (1.7.x)Maven Central

Compose

Compose 1.1 (1.1.x)Maven Central
Compose 1.2 (1.2.x)Maven Central
Compose 1.3 (1.3.x)Maven Central
Compose 1.4 (1.4.x)Maven Central
Compose 1.5 (1.5.x)Maven Central
Compose 1.6 (1.6.x)Maven Central
Compose 1.7 (1.7.x)Maven Central
Compose 1.8 (1.8.x)Maven Central
Compose 1.9 (1.9.x)Maven Central

Libraries

We are currently releasing various libraries for AppCompat or Compose.

A library that provides collapsible TextView with 'Read more' and 'Read less' text. (for Android View System)

A library that provides collapsible BasicText with 'Read more' and 'Read less' text. (for Jetpack Compose)

A library that provides collapsible Text with 'Read more' and 'Read less' text based on Material Theme. (for Jetpack Compose)

A library that provides collapsible Text with 'Read more' and 'Read less' text based on Material3 Theme. (for Jetpack Compose)

Attributes

This libraries provide the same attributes as much as possible regardless of View or Compose.

Attributes for 'Read More'

readMoreMaxLines

2 (default) Image
"1" Image

readMoreOverflow

Ellipsis (default) Image
Clip Image

readMoreText

"" (default) Image
"Read more" Image

readMoreTextSize

Same with textSize (default) Image
"11sp" Image

readMoreTextColor

Same with textColor (default) Image
"#FF0000" Image

readMoreTextStyle

Normal (default) Image
Bold Image
Italic Image

readMoreTextUnderline (View only)

false (default) Image
true Image

readMoreTextDecoration (Compose only)

null (default) Image
TextDecoration.Underline Image

Attributes for 'Read Less'

readLessText

"" (default) Image
"Read less" Image

readLessTextSize

Same with textSize (default) Image
"11sp" Image

readLessTextColor

Same with textColor (default) Image
"#FF0000" Image

readLessTextStyle

Normal (default) Image
Bold Image
Italic Image

readLessTextUnderline (View only)

false (default) Image
true Image

readLessTextDecoration (Compose only)

null (default) Image
TextDecoration.Underline Image

Attributes for toggle area

The toggle area is the red box in the following image.

readMoreToggleArea (View only)

all (default) Image
more Image
none Image

toggleArea (Compose only)

All (default) Image
More Image

Snapshots

If you want to check the version currently in development, you can use the snapshot versions.

The snapshot versions are updated on every commit to main branch.

repositories {
    maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}

dependencies {
    // Check the latest SNAPSHOT version from the link above
    classpath 'com.webtoonscorp.android:readmore-view:XXX-SNAPSHOT'
}

License

Copyright 2022 NAVER Webtoon

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

    https://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.

About

Text components supporting 'Read more' UX for Android View and Jetpack Compose

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors