public void init() {
    super.init();

    positive = (MoodType) findViewById(R.id.positive_mood);
    positive.setIcon(R.drawable.ic_positive);
    positive.setIconTint("#00E676");
    negative = (MoodType) findViewById(R.id.negative_mood);
    negative.setIcon(R.drawable.ic_negative);
    negative.setIconTint("#F44336");

    moodInfo = (TextView) findViewById(R.id.mood_blurb);
  }
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
      boolean isFavoritesEntry = position == 0;
      List<String> recent = isFavoritesEntry ? recentFavorites : recentHistory;
      long numAllEntries = isFavoritesEntry ? numAllFavorites : numAllHistoryItems;
      if (recentFavorites == null) {
        isFavoritesEntry = false;
        recent = recentHistory;
        numAllEntries = numAllHistoryItems;
      }

      if (convertView == null) {
        convertView = new SummaryView(context);
      }

      ((SummaryView) convertView).populate(numAllEntries, recent, isFavoritesEntry);

      return convertView;
    }