Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
commandiron committed Oct 12, 2022
2 parents 2ecfced + 6e3f9c4 commit 5be3e2a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Add Expandable Horizontal Pager in Android Jetpack Compose.
```kotlin
ExpandableHorizontalPager(
count = films.size,
initialHorizontalPadding = 64.dp,
initialWidth = 240.dp,
targetWidth = maxWidth,
mainContent = { page, expanded ->
mainContent = { page ->
AsyncImage(
modifier = Modifier.fillMaxSize(),
model = ImageRequest.Builder(LocalContext.current)
Expand All @@ -24,21 +26,22 @@ ExpandableHorizontalPager(
)
},
overMainContentExpanded = { page ->
OverMainContentExpanded(
OverMainContent(
title = "Details",
imageVector = Icons.Default.KeyboardArrowDown
)
},
overMainContentCollapsed = { page ->
OverMainContentExpanded(
OverMainContent(
title = "Close",
imageVector = Icons.Default.KeyboardArrowUp,
iconOnTop = true
)
},
hiddenContent = { page ->
HiddenContent(page)
}
HiddenContent(
title = films[page].title,
overview = films[page].overview
)
)
```

Expand Down

0 comments on commit 5be3e2a

Please sign in to comment.