SSComposeCookBook

Additional

Language
Kotlin
Version
N/A
Created
Jun 22, 2021
Updated
Nov 7, 2023
Owner
Simform Solutions (SimformSolutionsPvtLtd)
Contributors
Shweta Chauhan (ShwetaChauhan18)
Shweta Chauhan (shwetachauhan-simform)
Payal Rajput (PayalRajput-Simform)
mobile-simformsolutions
Mohammed Hanif (mdhanif-simformsolutions)
Mehul Kabaria (MehulKK)
Nikunj Buddhadev (nikunj-b-simform)
Krupa Parekh (krupa-p-simformsolutions)
akashisingh-simformsolutions
Ronak (ronak-u-simformsolutions)
priyal-p-simformsolutions
Yashwant Gowla (yashwantGowla)
Yashwant Gowla (yashwantgowla-simform)
Priyank Jain (priyankj-simform)
harshjasani-simform
Jay Sharma (jay-sharma-simform)
zakisk
17
Activity
Badge
Generate
Download
Source code

SSComposeCookBook

A Collection of major Jetpack compose UI components which are commonly used.

Introduction

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

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
Textfield Theme MagnifierView
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-in
transformation
Pager with Fling Behavior
Add/Remove pager

Coming Up

  • Navigation
  • Theme enhancement

Our Libraries in JetPackCompose

  • SSJetPackComposeProgressButton : SSJetPackComposeProgressButton is an elegant button with a different loading animations which makes your app attractive.
  • 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 : 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

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

Main Contributors


Nikunj Buddhadev

Mohammed Hanif

Shweta Chauhan

Mehul Kabaria

Ronak Ukani

Payal Rajput

Krupa Parekh

Priyal Parmar

Yashwant Gowla

Priyank Jain

License

MIT License

Copyright (c) 2022 Simform Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.