From 05fa0ff6658225c49a482ccdcf59904291582be9 Mon Sep 17 00:00:00 2001 From: Emir Demirli <50905347+commandiron@users.noreply.github.com> Date: Wed, 12 Oct 2022 10:22:04 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a3f80ef..ff7bfb2 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ Add Expandable Horizontal Pager in Android Jetpack Compose. ```kotlin ExpandableHorizontalPager( count = films.size, + initialHorizontalPadding = 80.dp, targetWidth = maxWidth, - mainContent = { page, expanded -> + mainContent = { page -> AsyncImage( modifier = Modifier.fillMaxSize(), model = ImageRequest.Builder(LocalContext.current) @@ -24,13 +25,13 @@ ExpandableHorizontalPager( ) }, overMainContentExpanded = { page -> - OverMainContentExpanded( + OverMainContent( title = "Details", imageVector = Icons.Default.KeyboardArrowDown ) }, overMainContentCollapsed = { page -> - OverMainContentExpanded( + OverMainContent( title = "Close", imageVector = Icons.Default.KeyboardArrowUp, iconOnTop = true From 1ad7cde629f23def99da9044f95b440bd2fc19b7 Mon Sep 17 00:00:00 2001 From: Emir Demirli <50905347+commandiron@users.noreply.github.com> Date: Wed, 12 Oct 2022 10:23:30 +0300 Subject: [PATCH 2/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff7bfb2..485d0c8 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ Add Expandable Horizontal Pager in Android Jetpack Compose. ```kotlin ExpandableHorizontalPager( count = films.size, - initialHorizontalPadding = 80.dp, + initialHorizontalPadding = 64.dp, + initialWidth = 240.dp, targetWidth = maxWidth, mainContent = { page -> AsyncImage( From 6e3f9c41090c65a6861920fc9b9e290a680f8b69 Mon Sep 17 00:00:00 2001 From: Emir Demirli <50905347+commandiron@users.noreply.github.com> Date: Wed, 12 Oct 2022 10:25:38 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 485d0c8..c2ab41e 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,10 @@ ExpandableHorizontalPager( iconOnTop = true ) }, - hiddenContent = { page -> - HiddenContent(page) - } + HiddenContent( + title = films[page].title, + overview = films[page].overview + ) ) ```