For the complete documentation index, see llms.txt. This page is also available as Markdown.

Android SDK

This document assumes that you understand the basic terms of Android app development in Kotlin language

Part 1: To Add Floating Chat Icon:

  • Step 1 : Add a WebView in your layout file where you want to add your floating chat button


Code Sample

<androidx.cardview.widget.CardView
        android:id="@+id/fab"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_gravity="bottom|end"
        android:layout_margin="16dp"
        android:layout_marginEnd="8dp"
        android:layout_marginBottom="8dp"
        app:elevation="6dp"
        app:cardCornerRadius="40dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent">


        <WebView
            android:id="@+id/floatingWebView"
            android:layout_width="80dp"
            android:layout_height="80dp" />


        <View
            android:id="@+id/touchView"
            android:layout_width="80dp"
            android:layout_height="80dp"/>


    </androidx.cardview.widget.CardView>

  • Step 2: Bind the webview to an activity in your code

// Load a URL in the WebView

With This, you will see a floating chat icon in your app

Now we need to open the chat window with the click of the floating chat icon.

but before that, we need to create a web view for the opening window

  • Step 3: Create A new Activity and layout with webview

  • Step4: Setup Touch Event with the floating chat icon

Part 2: Adding Slider View

  • Step 1 : Add a Webview in your layout file

  • Step 2 : Connect webview to Activity and load the URL in it

Last updated