예제 #1
0
  @Override
  protected void onResume() {
    super.onResume();
    displayView(0);
    adapter.setSelectedIndex(0);
    adapter.notifyDataSetChanged();
    // startSyncServices();

  }
예제 #2
0
  @Override
  public void onDashBoardSelect(String type) {

    if (type.equals(Commons.PROFILE)) {
      adapter.setSelectedIndex(1);

    } else if (type.equals(Commons.TAKE_EXAM)) {

      adapter.setSelectedIndex(2);
    } else if (type.equals(Commons.VIEW_RESULT)) {

      adapter.setSelectedIndex(3);
    } else {
      adapter.setSelectedIndex(-1);
    }

    adapter.notifyDataSetChanged();
  }