예제 #1
0
 static {
   for (FeatureFactType vt : EnumSet.allOf(FeatureFactType.class)) lookup.put(vt.getCode(), vt);
   numericIntervalTypes = ImmutableSet.of(INTERVAL.toString(), RATIO.toString());
   dateIntervalTypes = ImmutableSet.of(DATE.toString(), DATEHOUR.toString());
   intervalTypes =
       ImmutableSet.<String>builder()
           .addAll(numericIntervalTypes)
           .addAll(dateIntervalTypes)
           .build();
 }
예제 #2
0
    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
      view = inflater.inflate(R.layout.message_list, null);

      TextView start = (TextView) view.findViewById(R.id.start);
      TextView end = (TextView) view.findViewById(R.id.end);
      TextView item = (TextView) view.findViewById(R.id.item);

      start.setText(START.get(i));
      item.setText(ITEMS.get(i));
      end.setText(INTERVAL.get(i));

      return view;
    }