Add the Mobile Component to Your Android Layouts

Add the Live Experience widget to the following types of Android layouts.

You can add the Live Experience widget to the following types of Android layouts:
  • FrameLayout
  • LinearLayout
  • RelativeLayout
  • GridLayout
To add the widget to a layout, add the following element:
<LinearLayout android:id="@+id/cx_container" 
 android:orientation="horizontal" 
 android:layout_width="fill_parent" 
 android:layout_height="wrap_content" 
 android:layout_alignParentBottom="true">
</LinearLayout>
For example:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:app="http://schemas.android.com/apk/res-auto"
 xmlns:tools="http://schemas.android.com/tools"
 android:orientation="vertical"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:background="@android:color/white">
 ... other layout bits as required for your application...
 <LinearLayout android:id="@+id/cx_container"
 android:orientation="horizontal"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 android:layout_alignParentBottom="true">
 </LinearLayout>
</RelativeLayout>
Note: You can customize the layout where you've added the Live Experience widget. For information on customizing Android layouts, see https://developer.android.com/guide/topics/ui/themes.html.

What to do next

Next, Authenticate with Live Experience for Android.