Questions tagged [android-chips]

Chips are compact elements that represent an input, attribute, or action. Chips allow users to enter information, make selections, filter content, or trigger actions. Chips should appear dynamically as a group of multiple interactive elements. Unlike buttons, which should be a consistent and familiar call to action, one that a user expects to appear as the same action in the same general area.

The Chip android component is provided by the Material Components Library.

A Chip represents a complex entity in a small block, such as a contact. It is a rounded button that consists of a label, an optional chip icon, and an optional close icon. A chip can either be clicked or toggled if it is checkable.

Chips may be placed in a ChipGroup, which can be configured to lay out its chips in a single horizontal line or reflowed across multiple lines. If a chip group contains checkable chips, it can also control the multiple-exclusion scope for its set of chips so that checking one chip unchecks all other chips in the group.

240 questions
6
votes
3 answers

Android - Add Margin for SpannableStringBuilder using ReplacementSpan

I'm trying to format Hashtags inside a TextView/EditText (Say like Chips mentioned in the Material Design Specs). I'm able to format the background using ReplacementSpan. But the problem is that I'm not able to increase the line spacing in the…
PsyGik
  • 3,535
  • 1
  • 27
  • 44
6
votes
1 answer

What is a good and SIMPLE chips view library

I have searched everywhere to find the Chips View library that I need. The Chips need to be displayed inside an EditText with Autocomplete function. I have tried https://github.com/klinker41/android-chips and…
tim687
  • 2,256
  • 2
  • 17
  • 28
5
votes
1 answer

Adding Vertical divider in ChipGroup (Android)

Im trying to add a vertical divider in chipgroup to separate primary chip from other chips. Just like YouTube: I have attempted to add it through this method. In the Activity:
Amitoj
  • 171
  • 2
  • 15
5
votes
1 answer

Cannot draw on Chip when text alignment is center

I am extending Chip class to perform some drawing over it for my lib , my use case is more complex but for simplicity let's say i am just drawing a diagonal line my code class MyChip (context: Context,attributeSet: AttributeSet) :…
Abhinav Chauhan
  • 1,304
  • 1
  • 7
  • 24
5
votes
1 answer

Flutter - How to get Rounded border when scrolling listview?

I'm having listview with chips in bottom of the Column. In first image from starting in listview its in circular shape but in the end its shows as rectangle. When scrolling the listview Chip 1 day is overflow.(Second Image). I want both side…
MSARKrish
  • 3,355
  • 4
  • 30
  • 43
5
votes
2 answers

Android Material Chip Theme overriding

I want to customize a Material chip. I would think this is how to do it: