Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 private void clearBadge() {
   for (BadgeView i : badgeList) {
     i.setText(null);
   }
 }