# ScrollableLayout
**Repository Path**: KingZD/ScrollableLayout
## Basic Information
- **Project Name**: ScrollableLayout
- **Description**: An Android library supports sticking the navigator on the top when ItemView scrolls
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-11-04
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
ScrollableLayout
======================
An Android library supports sticking the navigator on the top when ItemView scrolls.
fork and change on [https://github.com/cpoopc/ScrollableLayout](https://github.com/cpoopc/ScrollableLayout)
scrolling is not smooth, especially on some models .than
「 [w446108264/StickHeaderLayout](https://github.com/w446108264/StickHeaderLayout) 」
gif


 
 
# Features
* API > 11
* Support RecyclerView, ScrollView, ListView, WebView.
* Support pulltoRefresh,loadmore
# Samples
You can [download a sample APK](https://github.com/w446108264/ScrollableLayout/raw/master/output/simple.apk)
# Gradle Dependency
Users of your library will need add the jitpack.io repository:
```xml
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
```
and:
```xml
dependencies {
compile 'com.github.w446108264:ScrollableLayout:1.0.1'
}
```
--
# Usage
simple to your proejct
### Layout
the frist childview will be ticked on the top.
```xml
```
### Simple
```java
sl_root = (ScrollableLayout) findViewById(R.id.sl_root);
listview = (ListView) findViewById(R.id.vp_scroll);
int size = 100;
String[] stringArray = new String[size];
for (int i = 0; i < size; ++i) {
stringArray[i] = ""+i;
}
ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, stringArray);
listview.setAdapter(adapter);
sl_root.getHelper().setCurrentScrollableContainer(listview);
```
# Contact & Help
Please fell free to contact me if there is any problem when using the library.
* email: shengjun8486@gmail.com