**
解決使用MaterialButton報錯:Error inflating class android.support.design.button.MaterialButton
**
在使用的控件上添加主題:android:theme="@style/Theme.MaterialComponents.Light"
<android.support.design.button.MaterialButton
android:id="@+id/bt_float"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="@style/Theme.MaterialComponents.Light" />