You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
"1"
readMoreOverflow
Ellipsis (default)
Clip
readMoreText
"" (default)
"Read more"
readMoreTextSize
Same with textSize (default)
"11sp"
readMoreTextColor
Same with textColor (default)
"#FF0000"
readMoreTextStyle
Normal (default)
Bold
Italic
readMoreTextUnderline (View only)
false (default)
true
readMoreTextDecoration (Compose only)
null (default)
TextDecoration.Underline
Attributes for 'Read Less'
readLessText
"" (default)
"Read less"
readLessTextSize
Same with textSize (default)
"11sp"
readLessTextColor
Same with textColor (default)
"#FF0000"
readLessTextStyle
Normal (default)
Bold
Italic
readLessTextUnderline (View only)
false (default)
true
readLessTextDecoration (Compose only)
null (default)
TextDecoration.Underline
Attributes for toggle area
The toggle area is the red box in the following image.
readMoreToggleArea (View only)
all (default)
more
none
toggleArea (Compose only)
All (default)
More
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.