用于在 android 中拖放的 NineOldAndroids 库 [英] NineOldAndroids library for Drag/Drop in android

查看:62
本文介绍了用于在 android 中拖放的 NineOldAndroids 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用中使用拖放功能.所以我应该使用九个旧的安卓库.我在 GitHub 中搜索并找到了这个解决方案:https://github.com/JakeWharton/NineOldAndroids我也从这个站点下载了九个老Androids.2.4.0.jar".并将这个 jar 文件导入我的应用程序.但它不起作用.依赖"需要吗?你能帮我吗,我该怎么做?谢谢

i want to use Drag-and-Drop in my app. so I should use Nine Old Androids Library. I searchrd in GitHub and found out this solution: https://github.com/JakeWharton/NineOldAndroids I also download "Nine Old Androids.2.4.0.jar" from this site. and import this jar file to my app. but it doesn't work. does"dependency" need? would you please help me how can I do this? thanks

推荐答案

如果你使用 gradle

if you use gradle

在你的 build.gradle

in your build.gradle

repositories {
    mavenCentral()
}

dependencies {
    compile group: 'com.nineoldandroids', name: 'library', version: '2.4.0'
}

这篇关于用于在 android 中拖放的 NineOldAndroids 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆