Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to add chips dynamically android

ChipGroup chipGroup = new ChipGroup(parentView.getContext());

String[] genres = {"Thriller", "Comedy", "Adventure"};
for(String genre : genres) {
 Chip chip = new Chip(parentView.getContext());
 chip.setText(genre);
 chipGroup.addView(chip);
}

Source by spin.atomicobject.com #
 
PREVIOUS NEXT
Tagged: #add #chips #dynamically #android
ADD COMMENT
Topic
Name
4+7 =