Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashqal/ChromeLikeSwipeLayout
Pull down, and execute more action!
https://github.com/ashqal/ChromeLikeSwipeLayout
Last synced: 3 months ago
JSON representation
Pull down, and execute more action!
- Host: GitHub
- URL: https://github.com/ashqal/ChromeLikeSwipeLayout
- Owner: ashqal
- Created: 2015-11-19T15:51:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T03:25:09.000Z (over 7 years ago)
- Last Synced: 2024-06-16T01:35:05.025Z (5 months ago)
- Language: Java
- Homepage:
- Size: 669 KB
- Stars: 644
- Watchers: 22
- Forks: 71
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - ChromeLikeSwipeLayout - 执行更多事件的下拉事件 (下拉刷新)
README
# ChromeLikeSwipeLayout
Pull down, and execute more action!## Screenshot
![DemoPreview](https://raw.githubusercontent.com/ashqal/ChromeLikeSwipeLayout/master/screenshot/DemoPreview.gif)## Usage
```java
...
```
* item selected callback
```java
ChromeLikeSwipeLayout chromeLikeSwipeLayout = (ChromeLikeSwipeLayout) findViewById(R.id.chrome_like_swipe_layout);
ChromeLikeSwipeLayout.makeConfig()
.addIcon(R.drawable.selector_icon_add)
.addIcon(R.drawable.selector_icon_refresh)
.addIcon(R.drawable.selector_icon_close)
.maxHeight(dp2px(40))
.radius(dp2px(35))
.gap(dp2px(5))
.circleColor(0xFF11CCFF)
.gummyDuration(1000)
.rippleDuration(1000)
.collapseDuration(1000)
.listenItemSelected(new ChromeLikeSwipeLayout.IOnItemSelectedListener() {
@Override
public void onItemSelected(int index) {
Toast.makeText(RecyclerViewActivity.this, "onItemSelected:" + index, Toast.LENGTH_SHORT).show();
}
})
.setTo(chromeLikeSwipeLayout);
```## Supported
* All ViewGroup## Download
```
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
```
```
dependencies {
compile 'com.github.ashqal:ChromeLikeSwipeLayout:'
}
```## Release Note
**0.4**
* maxHeight supported(Thanks to [Tommy Chan](https://github.com/tommytcchan)).
* Using `jitpack` instead of jCenter
* NestedScroll supported.
* Fix a few bugs.**0.3**
* add multi touch support##LICENSE
```
Copyright 2015 AshaLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```