"The less the space occupied, the more the clean ui looks"
This library provides an amazing Expandable card compose which you can use to show simple information or can put your own compose inside it.
Expandable card | Simpleinfo card |
---|---|
![]() |
![]() |
To deploy this project run
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.ErrorxCode:ExpandableCard:Tag'
}
ExpandableCard("A beautiful landscape") {
Image(
painter = painterResource(R.drawable.img), contentDescription = "",
contentScale = ContentScale.FillWidth,
modifier = Modifier.fillMaxWidth()
)
}
Result
SimpleInfoCard(
"About Jetpack compose",
"Jetpack Compose is Android’s......."
true,
"View more",
{
println("View more clicked!")
})
Result
Contributions are always welcome!
What you can do is you can add more customization options to it. You can anytime contact me on instagram for any kind of help.