Android中的富链接预览 [英] rich link preview in android
本文介绍了Android中的富链接预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个应用程序,我认为富链接预览(whatsapp支持它,请参考图片)将对用户有所帮助,但是我不知道如何启动它.这样做会有所帮助.
I am working on an application where I think rich link preview (whatsapp supports it,refer image) will be helpful for users but I am not able to get an idea to start on it.Any kind of suggestion/hint on how to do this will be helpful.
推荐答案
您可以使用此 Android链接github上的Preview 库
为此,只需将存储库添加到您的build.gradle文件中,就像这样
for that just add the repository to your build.gradle file like this
repositories {
jcenter()
maven { url 'https://github.com/leonardocardoso/mvn-repo/raw/master/maven-deploy'}
}
您可以使用以下工件:
dependencies {
compile 'org.jsoup:jsoup:1.8.3' // required
compile 'com.leocardz:link-preview:1.2.1@aar'
}
您可以从这里
这篇关于Android中的富链接预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文