<?xml version="1.0" encoding="utf-8"?>
<layout
    xmlns:android="http://schemas.android.com/apk/res/android">
    <data>
        <variable name="model" type="java.lang.String" />
    </data>
    <LinearLayout
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent">

    </LinearLayout>
</layout>
<?xml version="1.0" encoding="utf-8"?>
<layout
    xmlns:android="http://schemas.android.com/apk/res/android">
    <data>
        <variable name="model" type="java.lang.String" />
    </data>
    <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text='@{String.format("Error: %s", model)}'
            android:layout_gravity="center_horizontal"/>

    </FrameLayout>
</layout>
Add error message in search layout
Add error message in search layout
