为什么 Extended fab 不起作用?有任何想法吗?

Why Extended fab does not work? Any Ideas?

我正在尝试为我的 activity 获取 运行 扩展 FAB,请参见下面的屏幕截图。它只是不想运行。在我的 activity xml 中,我按如下方式使用它:

<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        ads:layout_constraintBottom_toTopOf="@+id/create_ad_view"
        ads:layout_constraintEnd_toEndOf="parent"
        ads:layout_constraintStart_toStartOf="parent"
        ads:layout_constraintTop_toBottomOf="@+id/create_title_et"
        app:icon="@drawable/ic_check"
        style="@style/Widget.MaterialComponents.ExtendedFloatingActionButton.Icon"/>

顺便说一句,我使用了不同的资源和教程,甚至 Material Design 的官方网站也使用了一些使用 Extended FAB 的细节。这是我的 dependency:

implementation 'com.google.android.material:material:1.0.0'

ExtendedFloatingActionButton1.1.0-alpha04 一起发布。

使用

implementation 'com.google.android.material:material:1.1.0'