private void initLineStations(AutoBreakAndNextReverseLineViewGroup stationGroup) { for (int i = 0; i < mTrainStations.size(); i++) { TextView stationView = setTextViewToGroup(mTrainStations.get(i)); stationViewList.add(stationView); stationGroup.addView(stationView); BadgeView stationBadge = new BadgeView(getActivity()); stationBadge.setHideOnNull(true); stationBadge.setBadgeMargin(0); stationBadge.setTargetView(stationView); stationBadge.setText(null); badgeList.add(stationBadge); } }
private void clearBadge() { for (BadgeView i : badgeList) { i.setText(null); } }