Site icon Android Tutorial Online

A layout that you can swipe/slide to show another layout

A layout that you can swipe/slide to show another layout

SwipeRevealLayout

A layout that you can swipe/slide to show another layout. This is a fork project from https://github.com/chthai64/SwipeRevealLayout

Demo

Overview
Drag mode

Drag mode normal: 

Drag mode same_level: 

Features

Usage

Dependencies

dependencies {
    implementation 'WIP'
}

Layout file

<com.chauthai.swipereveallayout.SwipeRevealLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:mode="same_level"
        app:dragEdge="left">

        <!-- Your secondary layout here -->
        <FrameLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent" />

        <!-- Your main layout here -->
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
            
</com.chauthai.swipereveallayout.SwipeRevealLayout>

app:mode can be normal or same_level

app:dragEdge can be leftrighttop or bottom

GitHub

View Github

Exit mobile version