<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

  <ListView android:id="@android:id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

  <TextView android:id="@android:id/empty"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:textAppearance="?android:textAppearanceLarge"
            android:text="@string/empty_devices"/>

</RelativeLayout>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginLeft="18dp"
                android:layout_marginRight="18dp">

  <ListView android:id="@android:id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

  <TextView android:id="@android:id/empty"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:textAppearance="?android:textAppearanceLarge"
            android:text="@string/empty_devices"/>

</RelativeLayout>

Set margin to 18dp in device list fragment
Set margin to 18dp in device list fragment
