SnackBar
SnackBar copied to clipboard
You must supply a layout_width attribute
Caused by: java.lang.UnsupportedOperationException: Binary XML file line #7: You must supply a layout_width attribute.
at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:779)
at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:8147)
at android.view.ViewGroup$MarginLayoutParams.
got the same error. Any solution?
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
solved by copying sb_snack.xml to layouts and adding android:layout_width="match_parent" android:layout_height="match_parent"