<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:orientation="vertical"
        android:padding="16dp">

        <ImageView
            android:layout_width="44dp"
            android:layout_height="44dp"
            android:layout_marginBottom="5dp"
            android:alpha="0.5"
            app:srcCompat="@drawable/ic_launcher" />

        <TextView
            android:id="@+id/empty_marker"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textColor="@color/empty_state_text_color"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/empty_marker_instructions"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            android:gravity="center"
            android:textColor="@color/empty_state_text_color"
            android:textSize="14sp" />
    </LinearLayout>

</FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!-- the layout is made focusable so that DPAD navigation to the FAB works even when the list is empty -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:focusable="true"
        android:gravity="center"
        android:orientation="vertical"
        android:padding="16dp">

        <ImageView
            android:layout_width="44dp"
            android:layout_height="44dp"
            android:layout_marginBottom="5dp"
            android:alpha="0.5"
            app:srcCompat="@drawable/ic_launcher" />

        <TextView
            android:id="@+id/empty_marker"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textColor="@color/empty_state_text_color"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/empty_marker_instructions"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            android:gravity="center"
            android:textColor="@color/empty_state_text_color"
            android:textSize="14sp" />
    </LinearLayout>

</FrameLayout>
Allow navigating to FAB with DPAD even when shortcut list is empty
Allow navigating to FAB with DPAD even when shortcut list is empty
