How to add chips from Material Components library to input field in android?

后端 未结 4 654
长情又很酷
长情又很酷 2020-12-07 23:43

I\'ve seen that in android-P google add new material components library which contains material chips:

Material components for android

Material.io chips us

4条回答
  •  太阳男子
    2020-12-08 00:08

    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"

提交回复
热议问题