Cannot setup floating action buttons as class cannot be found (Android Studio)

前端 未结 7 1278
情书的邮戳
情书的邮戳 2021-01-02 07:39

So I am pretty new to android and I am trying to setup a floating action button with the Android Design Support Library using this guide in Android Studio.

My Projec

7条回答
  •  隐瞒了意图╮
    2021-01-02 07:42

    If you are using androidx, you need to use:

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

    (or whatever latest version you want).

    The action button in the XML looks like:

        
    

提交回复
热议问题