Пример #1
0
  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    if (position == 0) mCurrentGroup = null;
    else if (position == 1) mCurrentGroup = BILATERAL;
    else mCurrentGroup = mGroups.get(position - 2).idstr;

    Settings.getInstance(null).putString(Settings.CURRENT_GROUP, mCurrentGroup);
    mAdapter.setSelection(position);
    ((MainActivity) getActivity()).setCurrentGroup(mCurrentGroup, true);
    mGfCallBack.onItemClick();
  }