<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout_root"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <TextView
        android:id="@+id/txt_toast"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:background="@color/textGray2B"
        android:gravity="center"
        android:maxWidth="@dimen/toast_width"
        android:paddingHorizontal="@dimen/toast_padding_hor"
        android:paddingVertical="@dimen/toast_padding_ver"
        android:text="默认规格已售罄,已添加其它规格"
        android:textColor="@color/white"
        android:textSize="@dimen/ts_toast" />
</RelativeLayout>