Skip to content

Commit 6207382

Browse files
authored
Create README.md
1 parent d0f8973 commit 6207382

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
```

0 commit comments

Comments
 (0)