File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # Spring Back Layout
2+ ** A wrapper ViewGroup that provides an iOS Look-And-Feel Overscroll Effect**
3+ ### Note
4+ This ViewGroup is from the decompiled MIUI Setting App
5+
6+ ### Screen shot
7+
8+ <div align =" center " >
9+ <table align =" center " border =" 0 " >
10+ <tr >
11+ <td> <img width="360"
12+ src="https://user-images.githubusercontent.com/33343210/82741450-1ca06280-9d7c-11ea-9986-ad2a83673e23.gif"/> </td >
13+ </tr >
14+ </table >
15+ </div >
16+ </br >
17+
18+ ### Adding to project
19+ ```
20+ implementation 'com.github.ldt-libs:SpringBackLayout:1.0'
21+ ```
22+
23+ ### Usage
24+ Wrap any scrollable view in the SpringBackLayout, like RecyclerView, ListView or NestedScrollView.
25+
26+ ```
27+ <com.ldt.springback.view.SpringBackLayout
28+ android:id="@+id/root"
29+ xmlns:android="http://schemas.android.com/apk/res/android"
30+ xmlns:app="http://schemas.android.com/apk/res-auto"
31+ xmlns:tools="http://schemas.android.com/tools"
32+ android:layout_width="match_parent"
33+ android:layout_height="match_parent"
34+ app:scrollOrientation="vertical"
35+ tools:context=".MainActivity">
36+ <androidx.recyclerview.widget.RecyclerView
37+ android:id="@+id/recycler_view"
38+ android:layout_width="match_parent"
39+ android:layout_height="match_parent"/>
40+ </com.ldt.springback.view.SpringBackLayout>
41+ ```
You can’t perform that action at this time.
0 commit comments