Search code examples
androidnotificationschathead

Facebook Style Cross Button to remove chat head in android


I have been working on an android application, in which i need to implement chat head functionality. I have been able to create the chat head but unable to find a way in which i can add the Cross button that appears on long click and drag of the icon. What I want to know is what is that cross icon and how on drag and drop it can be overlayed on the existing screen just like the chat head itself. Is that another chat head or something else?


Solution

  • I work on the Tooleap SDK which provides chat heads functionality to apps. I've also investigate this issue, and it seems that the bottom cross icon is not a chat head, but a transparent view that takes the entire bottom third of the screen (You can notice it by the tint that appears around the icon). inside of that view there is another view, which is the cross icon itself. Because the view is transparent, the chat head appears to be displayed on top of that view.