Android material chip component crashing app. Unable to inflate xml

前端 未结 4 2005
既然无缘
既然无缘 2020-11-29 08:53

Tried Chip component from both support library
com.google.android.support:design:28.0.0-rc01 and material
com.google.an

4条回答
  •  忘掉有多难
    2020-11-29 09:41

    Finally Got a solution as how to generate chips dynamically using new material chips

    Google has not provided any documentation for chipsInput layout or how to make a gmail address like layout. Using ChipDrawable won't give delete operation on chip option as can't call setOnCloseIconClickListener. I was able to do using HorizontalScrollView, ChipGroup and EditText

    Here's my code sample :

    MaterialChipsInputDemo

提交回复
热议问题