# Android Swipe Layout
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/daimajia/AndroidSwipeLayout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
This is the brother of [AndroidViewHover](https://github.com/daimajia/AndroidViewHover).
One year ago, I started to make an app named [EverMemo](https://play.google.com/store/apps/details?id=com.zhan_dui.evermemo) with my good friends. The designer gave me a design picture, the design like this:
![](http://ww1.sinaimg.cn/mw690/610dc034jw1ejoquidvvsg208i0630u4.gif)
I found it was pretty hard to achieve this effect, cause you had to be very familiar with the Android Touch System. It was beyond my ability that moment, and I also noticed that there was no such a concept library...
Time passed, finally...as you see right now.
## Demo
![](http://ww2.sinaimg.cn/mw690/610dc034jw1ejoplapwtqg208n0e74dx.gif)
[Download Demo](https://github.com/daimajia/AndroidSwipeLayout/releases/download/v1.1.8/AndroidSwipeLayout-v1.1.8.apk)
Before I made this, I actually found some libraries (eg.[SwipeListView](https://github.com/47deg/android-swipelistview)) that helps developers to integrate swiping with your UI component.
But it only works in `ListView`, and it has too many issues that they never care. What a pity!
When I start to make this library, I set some goals:
- Can be easily integrated in anywhere, ListView, GridView, ViewGroup etc.
- Can receive `onOpen`,`onClose`,`onUpdate` callbacks.
- Can notifiy the hidden children how much they have shown.
- Can be nested each other.
- Can handle complicate situation, just like [this](https://camo.githubusercontent.com/d145d9a9508b3d204b70882c05bc3d9bd433883c/687474703a2f2f7777312e73696e61696d672e636e2f6c617267652f3631306463303334677731656b686f6a7379326172673230386530366e6774312e676966).
## Usage
### Step 1
#### Gradle
```groovy
dependencies {
compile 'com.android.support:recyclerview-v7:21.0.0'
compile 'com.android.support:support-v4:20.+'
compile "com.daimajia.swipelayout:library:1.2.0@aar"
}
```
#### Maven
```xml
<dependency>
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
<version>r6</version>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>recyclerview-v7</artifactId>
<version>21.0.0</version>
</dependency>
<dependency>
<groupId>com.daimajia.swipelayout</groupId>
<artifactId>library</artifactId>
<version>1.2.0</version>
<type>apklib</type>
</dependency>
```
#### Eclipse
[AndroidSwipeLayout-v1.1.8.jar](https://github.com/daimajia/AndroidSwipeLayout/releases/download/v1.1.8/AndroidSwipeLayout-v1.1.8.jar)
### Step 2
[Wiki Usage](https://github.com/daimajia/AndroidSwipeLayout/wiki/usage)
## Wiki
[Go to Wiki](https://github.com/daimajia/AndroidSwipeLayout/wiki)
## About me
A student in mainland China.
Welcome to [offer me an internship](mailto:daimajia@gmail.com). If you have any new idea about this project, feel free to [contact me](mailto:daimajia@gmail.com). :smiley:
没有合适的资源?快使用搜索试试~ 我知道了~
主页滑动效果,滑动显示隐藏头部
共90个文件
xml:38个
java:22个
png:9个
需积分: 35 19 下载量 155 浏览量
2017-01-17
17:48:36
上传
评论 1
收藏 174KB RAR 举报
温馨提示
滑动显示隐藏菜单的布局代码库,跟天气主页一样的滑动效果,使用recyclerview代替listview实现,本项目是studio项目
资源推荐
资源详情
资源评论
收起资源包目录
AndroidSwipeLayout-master.rar (90个子文件)
AndroidSwipeLayout-master
gradlew 5KB
settings.gradle 28B
demo
src
main
AndroidManifest.xml 1KB
res
drawable-hdpi
bird.png 6KB
ic_launcher.png 9KB
hand.png 5KB
magnifier.png 4KB
star.png 5KB
trash.png 3KB
menu
my.xml 627B
drawable
red.xml 318B
dark_gray.xml 336B
white.xml 348B
divider.xml 823B
item_selector.xml 352B
drawable-mdpi
ic_launcher.png 5KB
layout
grid_item.xml 1KB
sample_together.xml 739B
sample3.xml 1KB
sampe_nested_edittext.xml 1KB
sampe_nested_seekbar.xml 1KB
sampe_nested_scrollview.xml 3KB
sample1.xml 3KB
recyclerview_item.xml 2KB
sample_nested_parent.xml 1KB
complicate_layout.xml 814B
listview_item.xml 2KB
gridview.xml 400B
recyclerview.xml 350B
listview.xml 245B
sample2.xml 2KB
main.xml 1KB
drawable-xxhdpi
ic_launcher.png 19KB
drawable-xhdpi
ic_launcher.png 14KB
values-w820dp
dimens.xml 358B
values
colors.xml 346B
strings.xml 228B
styles.xml 203B
dimens.xml 211B
java
com
daimajia
swipedemo
ListViewExample.java 5KB
GridViewExample.java 2KB
adapter
GridViewAdapter.java 1KB
ListViewAdapter.java 2KB
ArraySwipeAdapterSample.java 1KB
util
RecyclerItemClickListener.java 1KB
DividerItemDecoration.java 5KB
RecyclerViewAdapter.java 4KB
NestedExample.java 1KB
MyActivity.java 9KB
RecyclerViewExample.java 5KB
.gitignore 7B
build.gradle 1KB
proguard-rules.pro 667B
library
src
main
AndroidManifest.xml 42B
res
values
attrs.xml 817B
java
com
daimajia
swipe
SimpleSwipeListener.java 575B
adapters
BaseSwipeAdapter.java 3KB
ArraySwipeAdapter.java 3KB
SimpleCursorSwipeAdapter.java 2KB
RecyclerSwipeAdapter.java 2KB
CursorSwipeAdapter.java 2KB
SwipeLayout.java 55KB
util
Attributes.java 118B
interfaces
SwipeItemMangerInterface.java 573B
SwipeAdapterInterface.java 167B
implments
SwipeItemMangerImpl.java 6KB
gradle.properties 1KB
gradle-mvn-push.gradle 4KB
.gitignore 7B
build.gradle 481B
proguard-rules.pro 667B
.idea
runConfigurations.xml 564B
misc.xml 1KB
compiler.xml 686B
workspace.xml 13KB
gradle.xml 431B
.name 25B
modules.xml 290B
copyright
profiles_settings.xml 76B
vcs.xml 164B
LICENSE 1KB
gradle
wrapper
gradle-wrapper.properties 228B
gradle-wrapper.jar 49KB
README.md 3KB
local.properties 518B
AndroidSwipeLayout-master.iml 709B
gradlew.bat 2KB
gradle.properties 1KB
.gitignore 464B
build.gradle 436B
共 90 条
- 1
资源评论
大天涯
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功