Skip to main content
The 2024 Developer Survey results are live! See the results

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.

android-chips
1 vote
1 answer
63 views

How do I set the checked icon of a Chip programmatically?

Is there any way to set a drawable xml asset in a chip programmatically? Just playing around with chips, not forced to use them actually. I can easily swap, but i was wondering if that's possible or ...
Hele's user avatar
  • 345
0 votes
2 answers
267 views

Disable ripple effect on Chip

Hi I am trying to disable the ripple effect on Chip. I tried adding app:rippleColor but with no luck. Is it possible at all to disable this effect on Chip? <com.google.android.material.chip.Chip ...
Kurik9797's user avatar
4 votes
1 answer
1k views

Jetpack compose: TextField with Chips

I am trying to achieve a behaviour similar with the photo. A library that can do the same thing will be useful as well. I already tried https://github.com/dokar3/ChipTextField but run into some issues ...
Cristi Dumitrache's user avatar
-1 votes
1 answer
168 views

material chip selection change not working in android

I have created group of chips and when i try try to click on chips below listener is not calling. I want to update the code based on chip selection. chipGroup.setOnCheckedStateChangeListener Below is ...
Techchai Mobile's user avatar
2 votes
1 answer
599 views

Chip: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant)

I want to add a Chip view to ChipGroup in my project but always I get below error My code in Activity for (int i = 0; i < names.size(); i++) { Chip chip = new Chip(getApplicationContext()); ...
abolfazl bazghandi's user avatar
0 votes
0 answers
55 views

NullPointerException on boolean androidx.recyclerview.widget.RecyclerView$ViewHolder.shouldIgnore() when trying to add Chips to a fragment

I want to make a screen where you can filter based on chips. When adding the chips I get the following error: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx....
Jonas Verschueren's user avatar
0 votes
1 answer
177 views

Flutter chip with label text have changes the label positioning of TextFormField

I tried to create a TextFormField component with chip and label text. code: class BasicChipTextField extends StatelessWidget { const BasicChipTextField( {Key? key, this.testKey, ...
kapil tk's user avatar
  • 282
0 votes
1 answer
615 views

How to create 1 viewmodel with savedstatehandle for multiple chips?

I am trying to understand SavedstateHandle and how I can create 1 viewModel that can store multiple Chips using savedstatehandle. At the moment, whenever the user launches an onClickEvent on one of ...
Josef M's user avatar
  • 384
0 votes
1 answer
294 views

Android - Remove all chips from chipgroup

How do I remove all chips from a ChipGroup? I know I can remove one chip by passing it to the removeView method or one chip by it's index by calling the removeViewAt and passing it's index, but I ...
Leonardo Sibela's user avatar
1 vote
1 answer
2k views

How to save UI state within a chip while using navigation in compose?

I have a chip that changes configurations when being clicked on. However, as the user navigates back (popbackstack) or navigates to another screen, the clicked chip re-sets its previous position. As I ...
Josef M's user avatar
  • 384
1 vote
0 answers
186 views

Checked ID more than Child Count in ChipGroup Android when clicked right away

I created a Chip dynamically based on a list, and set OnCheckedChangeListener to the ChipGroup. So supposed there is 2 items in the list, the possible checkedId should be 1 or 2. But i find weird ...
wiryadev's user avatar
  • 1,361
0 votes
1 answer
230 views

OutlineSpotShadowColor under API 28

I'm trying to disable clicking effect on Material Chip. In Api>28 there is outlineSpotShadowColor attribute. And how to handle this on Api<28? In my adapter i'm adding chip and disabling this ...
Nickaleush's user avatar
0 votes
1 answer
127 views

How can i show the selected chips in chip group android

I am working on an property listing application where users can list their property like rooms etc. Now the problem I m facing is in the "update listing details" part. So basically we have ...
Puru Chaudhary's user avatar
0 votes
1 answer
58 views

Android Chip with material font icon text not wrapping correctly

In my Android app I have a recyclerview with chips inside, and some chip has not just normal text but icons from the material font. @Override public void onBindViewHolder(final ViewHolder holder, ...
P5music's user avatar
  • 3,297
3 votes
1 answer
533 views

Set Custom Drawable Background of Material Chip Programetically

I want help. I want UI as below and I am using Material Chip for that. These are material chip of filter type. But the tricky part is these all chips get added in view dynamically (Based on API ...
krupa parekh's user avatar

15 30 50 per page
1
2 3 4 5
16