How to use Chips component from android support library?

前端 未结 2 1864
南旧
南旧 2021-01-02 18:08

I have read the documentation on the official website. But I was unable to implement Chip in my project following the documentation. Android Studio can\'t find and import

2条回答
  •  耶瑟儿~
    2021-01-02 19:01

    If you are using the material library

    You can use material chip com.google.android.material.chip.Chip and implementation 'com.google.android.material:material:1.0.0' add in build.gradle

    Filter style="@style/Widget.MaterialComponents.Chip.Filter"
    
    Choice Chips style="@style/Widget.MaterialComponents.Chip.Choice"
    
    Entry input: style="@style/Widget.MaterialComponents.Chip.Entry"
    

    refer

提交回复
热议问题