Chathead that pops up on Facebook when you chat

Asked 2 years ago, Updated 2 years ago, 108 views

I want to implement a chathead that appears on the screen when chatting on Facebook messenger, is there an API or open source to help me with this?

facebook android

2022-09-22 16:52

1 Answers

I looked it up and there's an open source called bubbles-for-android. https://github.com/txusballesteros/bubbles-for-android

For instructions on using build.gradle

dependencies {
    ...
    compile 'com.txusballesteros:bubbles:1.2.1'
}

Like this.

<com.txusballesteros.bubbles.BubbleLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    <ImageView
        android:id="@+id/avatar"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_gravity="center"
        android:background="@drawable/profile_decorator"
        android:src="@drawable/profile"
        android:scaleType="centerCrop"/>

</com.txusballesteros.bubbles.BubbleLayout>

You can write it like this. Please refer to the relevant link for more information.


2022-09-22 16:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.