简体   繁体   English

如何处理常见聊天应用中的链接?

[英]How to process links like in common chat apps?

I want to process links like most of chat apps by adding related pictures or text to the link. 我想通过向链接添加相关图片或文本来处理大多数聊天应用程序之类的链接。

PS: the picture is not necessarly in the link, ex: www.dummydata.png PS:链接中没有必要的图片,例如:www.dummydata.png

this image can be helpful: 这个图像可能会有所帮助:

在此输入图像描述

It's called The Open Graph protocol 它被称为开放图谱协议

You basically need to add some meta tags to your content. 您基本上需要为内容添加一些标记。
If you manage the server side, you'll be able to support it. 如果您管理服务器端,您将能够支持它。 If not, it's not up to you. 如果没有,这不取决于你。

See an example 看一个例子

To retrieve theses tags you can use this library. 要检索这些标签,您可以使用库。 Just design a view that similar to the one in the picture and populate it. 只需设计一个类似于图片中的视图并填充它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何像whatsapp聊天布局一样更改我的聊天布局输出? - How to change my chat layout output as like whatsapp chat layout? 如何制作像WhatsApp Chat活动一样的RecylerView? - How to make a RecylerView like WhatsApp Chat activity? 如何在聊天中显示超级链接以打开浏览器意图 - How to show Hyper links in chat to open the browser intent 如何在Java中导航/处理原子条目链接? - How to navigate / process atom entry links in Java? Vaadin - 如何自定义MenuBar看起来像链接 - Vaadin - How to customize MenuBar to look like links 如何在两个具有公共库的应用程序中正确使用 Hilt? - How to use Hilt correctly in two apps with a common library? 如何在 Android 工作室的相关应用程序中打开社交媒体链接? - How to open Social media links in related apps from Android studio? 如何为Google Messenger等聊天应用制作时间戳 - How to make timestamp for chat app like google messenger 如何使用 MigLayout 在 java swing 中进行聊天(whatsapp 之类)ui - How to make chat(whatsapp like) ui in java swing using MigLayout 如何使用 FirebaseUI FirestoreRecyclerAdapter 像聊天应用程序一样反转 recyclerView 布局? - How to reverse recyclerView layout like a chat app with FirebaseUI FirestoreRecyclerAdapter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM