Android jetpack compose swipe library

Overview

Swiper for Android Jetpack Compose

License Build Status Jitpack

Android Jetpack Compose swipe library.

Download

Gradle

First Add it in your root project build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

Second Add dependency

dependencies {
    implementation 'com.github.lhoyong:swiper:1.0.0'
}

Basic Example

Swipe next items simply using a composable function.

Swiper(
        items = items,
        modifier = Modifier
            .fillMaxSize()
            .background(Color.Gray),
        onSwiped = { /* TODO */ }, // swipe end callback
     ) { item ->
        // composable swipe item
        SwipeItem(item)
    }  

Go to a simple Example.

License

Copyright 2021 by lhoyong

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
PCard  Add payment card screen made using JetPack Compose
PCard Add payment card screen made using JetPack Compose

PCard Add payment card screen made using JetPack Compose Find this repository useful? ❤️ Support it by joining stargazers for this repository. ⭐ And f

A customizable debug screen to view and edit flags that can be used for development in Jetpack Compose applications
A customizable debug screen to view and edit flags that can be used for development in Jetpack Compose applications

Tweaks A customizable debug screen to view and edit flags that can be used for development in Jetpack Compose applications To include the library add

A color picker for Jetpack compose 🎨
A color picker for Jetpack compose 🎨

Compose Color Picker 🎨 Color Picker for Jetpack compose A color picker for Jetpack compose 🎨 Download 🚧 Working on it 🚧 Usage ColorPicker { co

A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out

FabricView - A new canvas drawing library for Android. The library was born as part of a project in SD Hacks (www.sdhacks.io) on October 3rd. It is cu

Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.

Android StackBlur Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. Th

Android library providing bread crumbs to the support library fragments.

Hansel And Gretel Android library providing bread crumbs for compatibility fragments. Usage For a working implementation of this project see the sampl

Compose app with dummy data which serves as a playground to try out new things in the Android world.
Compose app with dummy data which serves as a playground to try out new things in the Android world.

Music Event Manager Compose app with dummy data which serves as a playground to try out new things in the Android world. Description The app primarily

Compose RevealSwipe
Compose RevealSwipe

RevealSwipe Current Compose Version: 1.0.0-beta09 Compose RevealSwipe Swipable in both directions Add to your project Add actual RevealSwipe library:

MacOS theme for JetBrains Compose UI framework
MacOS theme for JetBrains Compose UI framework

MacOS theme for Compose Multiplatform MacOS theme written in Compose UI. Create native looking UIs for Mac using Compose UI. Share your UI code to run

Comments
  • add baseline profiles

    add baseline profiles

    Add macrobenchmark with baseline profiles

    • result
    SwiperBenchmark_benchmarkNoCompilation
    timeToInitialDisplayMs   min 114.7,   median 114.7,   max 114.7
    frameCpuTimeMs   P50   34.1,   P90   59.4,   P95   67.1,   P99   72.7
    Traces: Iteration 0
    SwiperBenchmark_benchmarkBaselineProfiles
    timeToInitialDisplayMs   min 147.7,   median 147.7,   max 147.7
    frameCpuTimeMs   P50   22.1,   P90   38.4,   P95   50.5,   P99   59.3
    Traces: Iteration 0
    
    size/L 
    opened by lhoyong 0
Releases(1.0.3)
Owner
null
Card with swipe options in Jetpack Compose

SwipeableActionCard Card with swipe options in Jetpack Compose Tutorial: Click Here Import SwipeableActionCard library Add this in project level build

Harsh Mahajan 1 Nov 23, 2021
Android Library to implement simple touch/tap/swipe gestures

SimpleFingerGestures An android library to implement simple 1 or 2 finger gestures easily Example Library The library is inside the libSFG folder Samp

Arnav Gupta 315 Dec 21, 2022
Android library which allows you to swipe down from an activity to close it.

Android Sliding Activity Library Easily create activities that can slide vertically on the screen and fit well into the Material Design age. Features

Jake Klinker 1.3k Nov 25, 2022
Android swipe-to-dismiss mini-library and sample code

Android Swipe-to-Dismiss Sample Code Sample code that shows how to make ListView or other views support the swipe-to-dismiss Android UI pattern. See t

Roman Nurik 1.3k Dec 29, 2022
SwipeBack for Android Activities to do pretty the same as the android "back-button" will do, but in a really intuitive way by using a swipe gesture

SwipeBack SwipeBack is for Android Activities to do pretty the same as the android "back-button" will do, but in a really intuitive way by using a swi

Hannes Dorfmann 697 Dec 14, 2022
A swipe button for Android with a circular progress bar for async operations

ProSwipeButton A swipe button for Android with a circular progress bar for async operations Gradle dependencies { ... compile 'in.shadowfax:pr

Shadowfax Technologies 340 Nov 13, 2022
A player/ recorder visualizer with the swipe to seek functionality.

iiVisu A player/ recorder visualizer with the swipe to seek functionality. Demo Setup Step 1. Add the JitPack repository to your build file Add it in

Iman Irandoost 126 Nov 25, 2022
A simple implementation of swipe card like StreetView

A simple implementation of swipe card like StreetView!! DONATIONS This project needs you! If you would like to support this project's further developm

Michele Lacorte 831 Jan 4, 2023
A Jetpack Compose library with blur, pixelate, and other effects to keep your designer happy. Inspired by iOS UIVisualEffectView.

A Jetpack Compose library with blur, pixelate, and other effects to keep your designer happy. Inspired by iOS UIVisualEffectView.

清茶 67 Dec 30, 2022
A crypto currency wallet UI/UX template created using Android's jetpack compose.

CryptoWalletTemplate A crypto currency wallet UI/UX template created using Android's jetpack compose. High definition demo on youtube Youtube video de

prosper ekwerike 5 Feb 6, 2022