swipemenu-listview

swipemenu-listview for Android

Лицензия

Лицензия

Группа

Группа

cn.wandersnail
Идентификатор

Идентификатор

swipemenu-listview
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

swipemenu-listview
swipemenu-listview for Android
Ссылка на сайт

Ссылка на сайт

https://github.com/wandersnail/swipemenu-listview
Система контроля версий

Система контроля версий

https://github.com/wandersnail/swipemenu-listview

Скачать swipemenu-listview

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/cn.wandersnail/swipemenu-listview/ -->
<dependency>
    <groupId>cn.wandersnail</groupId>
    <artifactId>swipemenu-listview</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/cn.wandersnail/swipemenu-listview/
implementation 'cn.wandersnail:swipemenu-listview:1.0.0'
// https://jarcasting.com/artifacts/cn.wandersnail/swipemenu-listview/
implementation ("cn.wandersnail:swipemenu-listview:1.0.0")
'cn.wandersnail:swipemenu-listview:aar:1.0.0'
<dependency org="cn.wandersnail" name="swipemenu-listview" rev="1.0.0">
  <artifact name="swipemenu-listview" type="aar" />
</dependency>
@Grapes(
@Grab(group='cn.wandersnail', module='swipemenu-listview', version='1.0.0')
)
libraryDependencies += "cn.wandersnail" % "swipemenu-listview" % "1.0.0"
[cn.wandersnail/swipemenu-listview "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

swipemenu-listview

带侧滑菜单的ListView

根据https://github.com/baoyongzhang/SwipeMenuListView修改而来。

修改内容:

  • 有条目菜单打开时,触摸任意位置关闭条目。
  • 优化手势加速开启、关闭条目菜单。
  • 其他一些小修改

使用方法

  1. 因为使用了jdk8的一些特性,需要在module的build.gradle里添加如下配置:
//纯java的项目
android {
	compileOptions {
		sourceCompatibility JavaVersion.VERSION_1_8
		targetCompatibility JavaVersion.VERSION_1_8
	}
}

//有kotlin的项目还需要在project的build.gradle里添加
allprojects {
    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8

        kotlinOptions {
            jvmTarget = '1.8'
            apiVersion = '1.3'
            languageVersion = '1.3'
        }
    }
}
  1. module的build.gradle中的添加依赖,自行修改为最新版本,同步后通常就可以用了:
dependencies {
	...
	implementation 'cn.wandersnail:swipemenu-listview:latestVersion'
}
  1. 如果从jcenter下载失败。在project的build.gradle里的repositories添加内容,最好两个都加上,添加完再次同步即可。
allprojects {
	repositories {
		...
		mavenCentral()
		maven { url 'https://dl.bintray.com/wandersnail/androidx/' }
	}
}

代码托管

Maven Central Download

示例效果

image image image

Версии библиотеки

Версия
1.0.0