Android programming to achieve custom sharing list action_ Method of send function

This article describes an example of Android programming to realize user-defined shared list action_ Method of send function. Share with you for your reference, as follows:

I've seen that I've been making customized things recently. Because it's flexible and can get rid of the system's not very beautiful UI, (everyone knows) so I also made a customized sharing list and pop it up in the way of popupwindow.

Effect drawing first:

1. Layout:

popup_ share.xml

popup_ share_ item.xml

2. Query the list of all applications that support sharing in the mobile phone

Note: applicationinfo is the information obtained from a specific application. This information is collected from the < Application > tag of the corresponding androdimanifest.xml.

Resolveinfo is the information obtained by parsing an intent corresponding to intentfilter. It partially corresponds to the information collected from the < intent > tag of androidmanifest.xml.

Get the list. I can create my own appinfo class and just create one myself

3. Implementation of pop-up popupwindow

Note: just build a sharecustomadapter yourself. (there is an icon and a shared name)

For more Android related content, readers who are interested can view the topics on this site: introduction and advanced tutorial of Android development, summary of Android debugging skills and common problem solutions, summary of Android multimedia operation skills (audio, video, recording, etc.), summary of Android basic component usage, summary of Android view skills Android layout skills summary and Android control usage summary

I hope this article will help you in Android programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>