private void addChipToView(final CompoundButton chip) {
        final ChipGroup.LayoutParams clp = new ChipGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
        this.addView(chip, clp);
    }
adds chips to this group programatically
main/src/main/java/cgeo/geocaching/ui/ChipChoiceGroup.java