Skip to content

Commit a6b8e2d

Browse files
committed
changes.
1 parent 07f47b9 commit a6b8e2d

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

Diff for: .idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: app/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ dependencies {
6565

6666
implementation "com.google.accompanist:accompanist-systemuicontroller:0.24.9-beta"
6767

68+
// implementation 'com.github.commandiron:ExpandableHorizontalPagerCompose:1.0.0'
6869
implementation project(':expandable-horizontal-pager')
6970
}

Diff for: app/src/main/java/com/commandiron/expandablehorizontalpagercompose/MainActivity.kt

-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ package com.commandiron.expandablehorizontalpagercompose
33
import android.os.Bundle
44
import androidx.activity.ComponentActivity
55
import androidx.activity.compose.setContent
6-
import androidx.compose.foundation.background
7-
import androidx.compose.foundation.border
86
import androidx.compose.foundation.isSystemInDarkTheme
97
import androidx.compose.foundation.layout.*
108
import androidx.compose.material.icons.Icons
@@ -22,7 +20,6 @@ import androidx.compose.ui.layout.ContentScale
2220
import androidx.compose.ui.platform.LocalContext
2321
import androidx.compose.ui.unit.dp
2422
import androidx.compose.ui.unit.sp
25-
import androidx.compose.ui.zIndex
2623
import androidx.core.view.WindowCompat
2724
import coil.compose.AsyncImage
2825
import coil.request.ImageRequest
@@ -53,7 +50,6 @@ class MainActivity : ComponentActivity() {
5350
) {
5451
ExpandableHorizontalPager(
5552
count = films.size,
56-
initialWidth = 240.dp,
5753
targetWidth = maxWidth,
5854
mainContent = { page, expanded ->
5955
AsyncImage(

Diff for: expandable-horizontal-pager/src/main/java/com/commandiron/expandable_horizontal_pager/ExpandableHorizontalPager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fun ExpandableHorizontalPager(
3737
verticalAlignment: Alignment.Vertical = Alignment.CenterVertically,
3838
key: ((page: Int) -> Any)? = null,
3939
userScrollEnabled: Boolean = true,
40-
initialWidth: Dp = 120.dp,
40+
initialWidth: Dp = 200.dp,
4141
targetWidth: Dp = 400.dp,
4242
aspectRatio: Float = 2/3f,
4343
durationMillis: Int = 400,

Diff for: settings.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dependencyResolutionManagement {
1010
repositories {
1111
google()
1212
mavenCentral()
13+
14+
maven { url 'https://jitpack.io' }
1315
}
1416
}
1517
rootProject.name = "ExpandableHorizontalPagerCompose"

0 commit comments

Comments
 (0)