Releases: webtoon/ReadMoreTextView
Releases · webtoon/ReadMoreTextView
Compose 1.3.10
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose BOM 2023.04.00 |
readmore-material | Jetpack Compose BOM 2023.04.00 |
readmore-material3 | Jetpack Compose BOM 2023.04.00 |
What’s Changed
Compose 1.4.0
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose 1.5.0-alpha01 |
readmore-material | Jetpack Compose 1.5.0-alpha01 |
readmore-material3 | Jetpack Compose 1.5.0-alpha01 + Compose Material3 1.1.0-beta01 |
What’s Changed
Compose 1.3.9
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose BOM 2023.03.00 |
readmore-material | Jetpack Compose BOM 2023.03.00 |
readmore-material3 | Jetpack Compose BOM 2023.03.00 |
What’s Changed
Compose 1.3.8
Compose 1.3.7
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose 1.4.0-rc01 |
readmore-material | Jetpack Compose 1.4.0-rc01 |
readmore-material3 | Jetpack Compose 1.4.0-rc01 + Compose Material3 1.1.0-alpha08 |
What’s Changed
View 1.3.2
Compose 1.3.6
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose 1.4.0-beta01 |
readmore-material | Jetpack Compose 1.4.0-beta01 |
readmore-material3 | Jetpack Compose 1.4.0-beta01 + Compose Material3 1.1.0-alpha06 |
⚠️ Breaking Changes
onReadMoreClick
, onReadLessClick
slots are removed. (Added in Compose 1.3.5
)
So, if you are already using this attribute, you need to change your code like this:
foundation:
val (expanded, onExpandedChange) = rememberSaveable { mutableStateOf(false) }
BasicReadMoreText(
text = "text",
expanded = expanded,
+ onExpandedChange = onExpandedChange,
...
- onReadMoreClick = {
- onExpandedChange(true)
- },
readLessText = stringResource(id = R.string.read_less),
- onReadLessClick = {
- onExpandedChange(false)
- },
+ toggleArea = ToggleArea.More,
)
material, material3:
val (expanded, onExpandedChange) = rememberSaveable { mutableStateOf(false) }
ReadMoreText(
text = "text",
expanded = expanded,
+ onExpandedChange = onExpandedChange,
...
- onReadMoreClick = {
- onExpandedChange(true)
- },
readLessText = stringResource(id = R.string.read_less),
- onReadLessClick = {
- onExpandedChange(false)
- },
+ toggleArea = ToggleArea.More,
)
What’s Changed
View 1.3.1
Built to work with:
Library | Dependencies |
---|---|
readmore-view | AppCompat 1.6.1 |
⚠️ Breaking Changes
readMoreToggleEnabled
attribute is replaced to readMoreToggleArea
attribute.
So, if you are already using this attribute, you need to change your code like this:
- app:readMoreToggleEnabled="false"
+ app:readMoreToggleArea="none"
- app:readMoreToggleEnabled="true"
+ app:readMoreToggleArea="all"
What’s Changed
Compose 1.3.5
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose 1.4.0-beta01 |
readmore-material | Jetpack Compose 1.4.0-beta01 |
readmore-material3 | Jetpack Compose 1.4.0-beta01 + Compose Material3 1.1.0-alpha06 |
What’s Changed
Compose 1.3.4
Library | Dependencies |
---|---|
readmore-foundation | Jetpack Compose 1.4.0-alpha05 |
readmore-material | Jetpack Compose 1.4.0-alpha05 |
readmore-material3 | Jetpack Compose 1.4.0-alpha05 + Compose Material3 1.1.0-alpha05 |