I am trying to show a snackbar (via appcompat) to display a message to the user. It works great on phones, however on tablets I get

and

The code I use to create a snack is
Snackbar.make(mHomeContainer, R.string.rate_snackbar, Snackbar.LENGTH_LONG) .setAction("Rate", ...) .show();
Any recommendations on how to make this centering with appetizers would be greatly appreciated.
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <View android:id="@+id/status_bar" android:layout_width="match_parent" android:layout_height="0dp" android:background="@color/main" android:elevation="8dp"/> <include layout="@layout/toolbar" /> <RelativeLayout android:id="@+id/home_container" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" /> <ListView android:id="@+id/home_search_list" android:visibility="gone" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#88000000"/> </RelativeLayout> </LinearLayout> <include layout="@layout/navigation_list" /> </android.support.v4.widget.DrawerLayout>
android material-design appcompat
Tim mutton
source share