Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiongwei-git/ScrollDownLayout
ScrollDownLayout
https://github.com/xiongwei-git/ScrollDownLayout
Last synced: about 6 hours ago
JSON representation
ScrollDownLayout
- Host: GitHub
- URL: https://github.com/xiongwei-git/ScrollDownLayout
- Owner: xiongwei-git
- License: apache-2.0
- Created: 2015-10-19T08:53:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T09:37:17.000Z (over 6 years ago)
- Last Synced: 2024-11-12T21:34:13.300Z (8 days ago)
- Language: Java
- Size: 10.3 MB
- Stars: 144
- Watchers: 6
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - https://github.com/xiongwei-git/ScrollDownLayout
- awesome-android-ui - https://github.com/xiongwei-git/ScrollDownLayout
README
# ScrollDownLayout
## Summary 概要
A custom Android Widget,support u use ViewPager in a ScrollView or ListView。
帮助你能够在ScrollView或者ListView里面使用ViewPager,支持手势下滑退出页面## Gif & Usage scenario Gif动画和使用场景
![1](https://github.com/xiongwei-git/ScrollDownLayout/blob/master/Art/2.gif)
![2](https://github.com/xiongwei-git/ScrollDownLayout/blob/master/Art/use.png)## Video 视频
[Youtube](https://youtu.be/YVO7dljmwpw)## Demo 例子
[Download Demo](https://github.com/xiongwei-git/ScrollDownLayout/blob/master/Art/app-debug.apk)## Usage 使用方法
### Step 1
#### Gradle
```
dependencies {
compile 'com.ted.coder.sdlayout:library:1.0.2'
}
```
### Step 2
#### Java Code
```
{
mScrollDownLayout.setMinOffset(0);
mScrollDownLayout.setMaxOffset(800);
mScrollDownLayout.setExitOffset(1674);
mScrollDownLayout.setToOpen();
mScrollDownLayout.setIsSupportExit(true);
mScrollDownLayout.setAllowHorizontalScroll(true);
mScrollDownLayout.setOnScrollChangedListener(mOnScrollChangedListener);
}
```