Skip to content

A simple, customizable and modern card compose library which can expand and collapse.

License

Notifications You must be signed in to change notification settings

ErrorxCode/ExpandableCard

Repository files navigation

Expandable card (Jitpack library)

Languages-Kotlin Version Instagram - x0.rahil Downloads GitHub Repo stars

"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
image image

Implementation

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'
}

Usage/Examples

ExpandableCard

ExpandableCard("A beautiful landscape") {  
  Image(  
        painter = painterResource(R.drawable.img), contentDescription = "",  
        contentScale = ContentScale.FillWidth,  
        modifier = Modifier.fillMaxWidth()  
    )  
}

Result

image

SimpleInfo card

SimpleInfoCard(  
    "About Jetpack compose",  
    "Jetpack Compose is Android’s......."  
    true,  
    "View more",  
    {  
	  println("View more clicked!")  
    })

Result

image

Contributing

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.