SwipeListView ([Play Store Demo][1])
=============
An Android List View implementation with support for drawable cells and many other swipe related features.
- [Introduction](#introduction)
- [Download](#download)
- [Maven Dependency](#maven-dependency)
- [APKLib and others](#apklib-and-others)
- [Dependencies](#dependencies)
- [Using the standalone SwipeListView JAR](#using-the-standalone-swipelistview-jar)
- [Demo](#demo)
- [XML Usage](#xml-usage)
- [License](#license)
Click to watch video
[![SwipeListView screenshot][6]][7]
# Introduction
SwipeListView was born out of the need to add swipe gestures to ListView on Android for
@ [47 Degrees][4] Clients. Contributions and constructive feedback are welcome.
# Download
## Maven Dependency
SwipeListView may be automatically imported into your project if you already use [Maven](http://maven.apache.org/).
Just declare android-swipelistview as a maven dependency.
If you wish to always use the latest unstable snapshots, add the Sonatype repository where the SwipeListView
snapshot artifacts are being deployed.
SwipeListView official releases will be made available at Maven Central.
```xml
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</repository>
<dependency>
<groupId>com.fortysevendeg.android</groupId>
<artifactId>swipelistview</artifactId>
<version>1.0-SNAPSHOT</version>
<type>apklib</type>
</dependency>
```
## APKLib and others
You can get the releases, snapshots and other forms in which SwipeListView is distributed from the Maven sonatype Repository here
[Downloads][5].
## Dependencies
SwipeListView depends on the following libraries.
- com.nineoldandroids
SwipeListView expects that you include one of the Google Android [compatibility libraries][3] in order to use Loaders in versions that do not support them natively.
Depending on your requirements you may choose to include one of the following...
- com.google.android :
- support-v4 (Available in Maven Central)
# Using the standalone SwipeListView JAR
If you manually include the single SwipeListView jar [swipelistview-1.0-SNAPSHOT.jar][5] in your libs/ folder you would also have to add the following dependencies:
- [nineoldandroids-2.4.0.jar][8]
- android-support-v4
You'd have to provide also the [attrs.xml][9] inside your directory "res/values" so the attributes are properly picked up by the runtime.
We do discourage people from manually adding the jars and recomend following the maven or apklib aproach to include SwipeListView library in your own project.
# Demo
You can see a demo SwipeListView in action at [android-swipelistview-sample][2] or install it from [Google Play][1]
# XML Usage
If you decide to use SwipeListView as a view, you can define it in your xml layout like this:
```xml
<com.fortysevendeg.swipelistview.SwipeListView
xmlns:swipe="http://schemas.android.com/apk/res-auto"
android:id="@+id/example_lv_list"
android:listSelector="#00000000"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
swipe:swipeFrontView="@+id/front"
swipe:swipeBackView="@+id/back"
swipe:swipeActionLeft="[reveal | dismiss]"
swipe:swipeActionRight="[reveal | dismiss]"
swipe:swipeMode="[none | both | right | left]"
swipe:swipeCloseAllItemsWhenMoveList="[true | false]"
swipe:swipeOpenOnLongPress="[true | false]"
swipe:swipeAnimationTime="[miliseconds]"
swipe:swipeOffsetLeft="[dimension]"
swipe:swipeOffsetRight="[dimension]"
/>
```
* `swipeFrontView` - **Required** - front view id.
* `swipeBackView` - **Required** - back view id.
* `swipeActionLeft` - Optional - left swipe action Default: 'reveal'
* `swipeActionRight` - Optional - right swipe action Default: 'reveal'
* `swipeMode` - Gestures to enable or 'none'. Default: 'both'
* `swipeCloseAllItemsWhenMoveList` - Close revealed items on list motion. Default: 'true'
* `swipeOpenOnLongPress` - Reveal on long press Default: 'true'
* `swipeAnimationTime` - item drop animation time. Default: android configuration
* `swipeOffsetLeft` - left offset
* `swipeOffsetRight` - right offset
# Continuous Integration
CI and Artifact Repository hosted in ClinkerHQ.com
[![ClinkerHQ][10]][11]
# License
Copyright (C) 2012 47 Degrees, LLC
http://47deg.com
hello@47deg.com
Licensed 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 at
http://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.
[1]: https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview
[2]: https://github.com/47deg/android-swipelistview-sample
[3]: http://developer.android.com/intl/es/tools/extras/support-library.html
[4]: http://47deg.com
[5]: https://oss.sonatype.org/content/groups/public/com/fortysevendeg/android/swipelistview/1.0-SNAPSHOT/
[6]: https://raw.github.com/47deg/android-swipelistview-sample/master/screenshot_swipelistview_small.png
[7]: https://www.youtube.com/watch?v=E0352OH488M
[8]: https://github.com/JakeWharton/NineOldAndroids/downloads
[9]: https://github.com/47deg/android-swipelistview/tree/master/res/values
[10]: http://dl.clinkerhq.com/assets/badge/clinker-badge_125x125.png
[11]: http://clinkerhq.com
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
android-swipelistview-master.zip (62个子文件)
android-swipelistview-master
gradlew.bat 2KB
swipelistview-samples
pom.xml 649B
demo
screenshot_swipelistview_small.png 85KB
pom.xml 2KB
res
drawable-ldpi
icon.png 2KB
values-v11
themes.xml 789B
menu
menu_choice_items.xml 970B
menu_app.xml 983B
drawable-xhdpi-v11
action_bar_icon_settings.png 1KB
action_bar_icon_discard.png 2KB
drawable-hdpi-v11
action_bar_icon_settings.png 1KB
action_bar_icon_discard.png 2KB
drawable-hdpi
action_bar_icon_settings.png 1KB
icon.png 4KB
action_bar_icon_discard.png 2KB
drawable-xhdpi
action_bar_icon_settings.png 1KB
action_bar_icon_discard.png 2KB
background_item.9.png 315B
drawable
choice_selected.xml 155B
background_new_tag.xml 224B
choice_unselected.xml 155B
values
colors.xml 1KB
themes.xml 784B
strings.xml 2KB
styles.xml 4KB
dimens.xml 1KB
drawable-mdpi
action_bar_icon_settings.png 1KB
icon.png 3KB
action_bar_icon_discard.png 1KB
drawable-mdpi-v11
action_bar_icon_settings.png 1KB
action_bar_icon_discard.png 1KB
layout
package_row.xml 3KB
swipe_list_view_activity.xml 2KB
settings_activity.xml 9KB
src
com
fortysevendeg
android
swipelistview
sample
activities
SwipeListViewExampleActivity.java 9KB
SettingsActivity.java 9KB
adapters
PackageAdapter.java 5KB
PackageItem.java 1KB
dialogs
AboutDialog.java 3KB
utils
PreferencesManager.java 2KB
SettingsManager.java 3KB
AndroidManifest.xml 2KB
build.gradle 362B
screenshot_swipelistview_large.png 357KB
gradlew 5KB
pom.xml 7KB
NOTICE.txt 157B
gradle
wrapper
gradle-wrapper.jar 49KB
gradle-wrapper.properties 231B
swipelistview
pom.xml 4KB
res
values
swipelistview__attrs.xml 2KB
src
com
fortysevendeg
swipelistview
SwipeListViewListener.java 3KB
SwipeListView.java 20KB
BaseSwipeListViewListener.java 1KB
SwipeListViewTouchListener.java 36KB
AndroidManifest.xml 963B
build.gradle 333B
.gitignore 47B
README.md 6KB
settings.gradle 55B
LICENSE.txt 11KB
build.gradle 323B
共 62 条
- 1
资源评论
- senyami2014-07-01不错,有参考价值。
Sr_123
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功