@Override
 public void onViewCreated(View view, Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   FontUtils.setRobotoFont(getActivity(), view);
 }
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_select_school);

    final SharedPreferences settings =
        PreferenceManager.getDefaultSharedPreferences(getApplicationContext());

    lstSchools = (ListView) findViewById(R.id.listSchools);
    progress = (ProgressBar) findViewById(R.id.progress);
    suggestSchool = (FrameLayout) findViewById(R.id.suggestSchool);
    locate = (LinearLayout) findViewById(R.id.llLocate);
    tvLocateString = (TextView) findViewById(R.id.tvLocateString);
    ivLocationIcon = (ImageView) findViewById(R.id.ivLocationIcon);

    new LoadSchoolsTask().execute();

    OnItemClickListener listener =
        new OnItemClickListener() {

          @Override
          public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
            selectedSchool = schools.get(position);
            if (selectedSchool.requiresLogin()) {
              dialog = LoginDialogFragment.getInstance(selectedSchool.getLogin());
              dialog.show(getSupportFragmentManager(), "login");
            } else {
              settings.edit().putString("selected_school", selectedSchool.getId()).commit();
              launchApp();
            }
          }
        };
    lstSchools.setOnItemClickListener(listener);

    suggestSchool.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View arg0) {
            Utils.email(
                SelectSchoolActivity.this,
                "*****@*****.**",
                "Vertretungsplan App",
                "Schule: \nOrt: \nAdresse des Online-Vertretungsplans:");
          }
        });

    locate.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            if (loaded) {
              if (status == Status.GEO) {
                status = Status.LIST;
                tvLocateString.setText(R.string.geolocate);
                ivLocationIcon.setImageResource(R.drawable.ic_action_location_found);
                showList();
              } else if (status == Status.LIST) {
                status = Status.LOADING;
                tvLocateString.setText(R.string.geolocate_progress);
                ivLocationIcon.setImageResource(R.drawable.ic_action_location_found);
                showListGeo();
              }
            } else {
              Toast.makeText(
                      SelectSchoolActivity.this,
                      "Bitte warten, bis die Liste geladen ist...",
                      Toast.LENGTH_LONG)
                  .show();
            }
          }
        });
    FontUtils.setRobotoFont(this, findViewById(android.R.id.content));
  }