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
0
votes
1 answer

Failed to instantiate ChipsInput from MaterialChipsInput for Android

I'm getting this error just by adding MaterialChipsInput to my gradle file and building the project: /root/.gradle/caches/transforms-1/files-1.1/MaterialChipsInput-1.0.8.aar/9cf34e21c8b45d8b575032229b78596a/res/values/values.xml Error:(3, 5) error:…
0
votes
1 answer

How to get selected chips from ChipView?

I am using android ChipView library .I didn't found any doc regarding this. Please refer to this compile 'com.github.jakebonk:ChipView:1.0.1' I went through the code but there is no method that return selected tag from the list. Is there any way…
Dee Nix
  • 170
  • 1
  • 13
0
votes
1 answer

How to change border color and close / delete button for Material Chip View?

I'm using Material Chip View. Is there anyway for me to change the chip border colour and the remove / delete chip button? Material Chip View https://github.com/robertlevonyan/materialChipView
0
votes
1 answer

simple text in android chipview

I'm using this chipView in android for this simple tag like view. But it only accepting email-id's and not the simple text tags. Contact contact = new Contact(firstName, lastName, displayName, @NonNull emailAddress, Uri avatarUrl) If i press Enter…
CdVr
  • 323
  • 3
  • 15
0
votes
0 answers

convert string to Chips in a textField

I want to convert text which is in a EditText to chips There are a lot of libraries for and related question to it like this , this and this question. All of them are hard to understand (at least for me ), because all of those library have features…
remy boys
  • 2,928
  • 5
  • 36
  • 65
0
votes
2 answers

Android material Chips, how to use them, which class is this?

I would like to display words in a way like a Tag Cloud looks. For this android material chips would be the perfect choice for me, but I can't find anywhere in the docs how to use them. It is mentioned in the design guidelines only:…
Edmond Tamas
  • 3,148
  • 9
  • 44
  • 89
0
votes
0 answers

How to create the chip UI inside a auto-complete-text-view in android?

Can anyone give me the xml or any way to implement this kind of UI in android auto complete textview. Chip UI like this. https://www.google.co.in/design/spec/components/chips.html# Please note that I want to use CustomAdapter with the autocomplete…
Kalyan Dechiraju
  • 1,219
  • 1
  • 11
  • 29
0
votes
1 answer

Binary XML file line #23: Error inflating class com.example.caesar.library.ChipView

i have an error which i cant seem to solve. this is my XML activity_main. this is line 23. com.example.caesar.library.ChipView i dont know what the problem is since the library can be found. the app runs perfectly but crashes as soon as it hits the…
Caesar Krit
  • 204
  • 4
  • 19
0
votes
1 answer

How to add default tokens to TokenAutoComplete using addObject(obj) method call in Android

How to add default tokens to TokenAutoComplete using addObject(obj) method call in Android. I tried using the addObject method but it behaves very differently a from what I expected, so please, help me to get a solution for this. I want to add…
SumeetP
  • 109
  • 1
  • 2
0
votes
0 answers

Click event of the specific character from ImageSpan

I am using ImageSpan to display the textview as a bitmap using SpannableStringBuilder. I have successfully implemented it and got the following output. Now i want the click event of the specific character of the textview i.e of Cross Sign from the…
AndroidLearner
  • 4,500
  • 4
  • 31
  • 62
0
votes
1 answer

Adding items to TokenAutoComplete Android

I am using the TokenAutoComplete library for adding Gmail style chips to my textfield. Everything is working fine. The only problem is that i want to add items to my ChipTextView when the UI is loaded but i cannot find any way to do that. All the…
-1
votes
1 answer

how can get chipgroup values when the user selected and submit to firebase?

how can get chipgroup values when the user selected and submit to firebase? I already written the code, but when user selected and submit the date to firebase, I just got the value -1. I don't know what's happen. String[] CampSite = new…
James
  • 13
  • 4
-1
votes
2 answers

how to make material chips with dropdown list

I am trying to design material chips, each material is a dropdown list what I am trying to do is there any way to active this
-1
votes
2 answers

How do I create this type of xml layout

Please I need help on achieving this type of layout in android xml. I have tried with RecyclerView and this library but I still did not get what I wanted. Any ideas? Thanks
-2
votes
1 answer

Custom styled checkbox (Material Chips) for android studio

I would like to create chips in android like shown below: Is it possible to do so with android studio? If so, how can I do it with XML? Tried creating this CheckBox but want to know how to add theme like the above screenshot:
user10772620
1 2 3
15
16