
# SSComposeCookBook
[](https://developer.android.com/jetpack/compose)
[](https://kotlinlang.org)
[](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)
[](https://www.android.com/)
A Collection of major Jetpack compose UI components which are commonly used.
## Introduction
[Jetpack Compose](https://developer.android.com/jetpack/compose) is a modern toolkit for building native Android UI. It simplifies and accelerates UI development on Android with less code, powerful tools, and intuitive Kotlin APIs.
In this repository, there are number of UI components demonstrated which can be useful in regular development through Jetpack Compose.
## Prerequisites
- Experience with Kotlin syntax, including lambdas
## What you'll need
- [Latest Stable Android Studio](https://developer.android.com/studio)
- [Google Maps Key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)
## Setup (For Google Map Implementation)
To run the google map samples, you'll have to:
1. Get a Maps API key
2. Add an entry in `local.properties` or `local.defaults.properties` that looks like `MAPS_API_KEY=YOUR_MAPS_KEY`
3. Build and run
## Components
| App Bar | Bottom Navigation | Button |
| -- | -- | -- |
|
|
|
| Checkbox | Dialog | Dropdown |
| -- | -- | -- |
|
|
|
| FAB | Modal Drawer | Bottom Drawer |
| -- | -- | -- |
|
|
|
| Radio Button | Slider | Text |
| -- | -- | -- |
|
|
|
| Textfield | Theme | ZoomView |
| -- | -- | -- |
|
|
|
| TabBar | DatePicker | TimePicker |
| -- | -- | -- |
|
|
|
| ImagePicker | ParallaxEffect | Compose views in Xml |
| -- | -- | -- |
|
|
|
|
| XML views in Compose |
| -- |
|
|
## List
| LazyRow/Column | LazyVerticalGrid | Advance List |
| -- | -- | -- |
|
|
|
## Pull To Refresh
| Simple Pull To Refresh | Custom Background Pull To Refresh | Custom View Pull To Refresh |
| -- | -- | -- |
|
|
|
## Swipe To Delete
| Swipe Left | Swipe Right | Swipe Left + Right |
| -- | -- | -- |
|
|
|
## Constraint Layout
| Barrier | Guideline | Chain |
| -- | -- | -- |
|
|
|
## Animation
| Basic | Content | Gesture |
| -- | -- | -- |
|
|
|
| Infinite | Shimmer | TabBar |
| -- | -- | -- |
|
|
|
## Sample UI
| Instagram |
| -- |
|
|
## Canvas
| Overview | Shapes | Text and Image |
| -- | -- | -- |
|
|
|
|
| Path | Path Operations | DrawScope Helpers |
| -- | -- | -- |
|
|
|
|
| Canvas + Touch | Blend Modes | Basic Example |
| -- | -- | -- |
|
|
|
|
| Android 11 Easter Egg |
| -- |
|
|
## Google Maps
| Basic | Marker | Polyline |
| -- | -- | -- |
|
|
|
| Polygon | Circle | Ground Overlay |
| -- | -- | -- |
|
|
|
| Tile Overlay | Indoor Level | Lite Map |
| -- | -- | -- |
|
|
|
| Place Picker | Navigation Viewer | Projection |
| -- | -- | -- |
|
|
|
| Cluster | Heat Map | KML |
| -- | -- | -- |
|
|
|
| GeoJSON | ScaleBar | Snapshot |
| -- | -- | -- |
|
|
|
| Map in scrollable view | Compose Map In XML |
| -- | -- |
|
|
|
## ViewPager
| Horizontal Pager | Horizontal Pager with Tabs | Horizontal Pager with indicator |
| -- | -- | -- |
|
|
|
|
| Vertical Pager with indicator | Pager with Zoom-intransformation | Pager with Fling Behavior |
| -- | -- | -- |
|
|
|
|
| Add/Remove pager |
| -- |
|
|
## Coming Up
- Navigation
- Theme enhancement
## Our Libraries in JetPackCompose
- [SSJetPackComposeProgressButton](https://github.com/SimformSolutionsPvtLtd/SSJetPackComposeProgressButton) : SSJetPackComposeProgressButton is an elegant button with a different loading animations which makes your app attractive.
- [SSJetpackComposeSwipeableView](https://github.com/SimformSolutionsPvtLtd/SSJetpackComposeSwipeableView) : SSJetpackComposeSwipeableView is a small library which provides support for the swipeable views. You can use this in your lazyColumns or can add a simple view which contains swipe to edit/delete functionality.
- [SSComposeOTPPinView](https://github.com/SimformSolutionsPvtLtd/SSComposeOTPPinView) : A custom OTP view to enter a code usually used in authentication. It includes different types of OTPViews which is easy to use and configure your own view and character of OTP using all the attributes.
## Official Documentations
- [Jetpack Compose](https://developer.android.com/jetpack/compose)
- [Jetpack Compose Pathways](https://developer.android.com/courses/pathways/compose)
- [Jetpack Compose Samples](https://github.com/android/compose-samples)
## Find this samples useful? ❤️
Support it by joining __[stargazers]__ for this repository.⭐
## How to Contribute🤝
Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! 💪
Check out our __[Contributing Guide]__ for ideas on contributing.
## Bugs and Feedback
For bugs, feature requests, and discussion please use __[GitHub Issues]__.
## Awesome Mobile Libraries
- Check out our other available [awesome mobile libraries](https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries)
## Main Contributors
Nikunj Buddhadev |
Mohammed Hanif |
Shweta Chauhan |
Mehul Kabaria |
Ronak Ukani |
Payal Rajput |
Krupa Parekh |
Priyal Parmar |
Yashwant Gowla |
Priyank Jain |