コード例 #1
0
    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
      if (view == null) {
        view = new TextSettingsCell(mContext);
      }

      LocaleController.LocaleInfo c = searchResult.get(i);
      ((TextSettingsCell) view).setText(c.name, i != searchResult.size() - 1);

      return view;
    }
コード例 #2
0
    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
      if (view == null) {
        view = new TextSettingsCell(mContext);
      }

      LocaleController.LocaleInfo localeInfo =
          LocaleController.getInstance().sortedLanguages.get(i);
      ((TextSettingsCell) view)
          .setText(localeInfo.name, i != LocaleController.getInstance().sortedLanguages.size() - 1);

      return view;
    }