zoo_app/app/src/main/java/com/example/jhalloran/zoo/ui/main/MainActivity.java
private void updateContentThatDoesNotComeFromModel() {
    final Button manageZooButton = findViewById(R.id.manageZooButton);
    final Intent manageZooIntent = new Intent(this, ZooManagerActivity.class);
    manageZooButton.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
        startActivity(manageZooIntent);
      }
    });

    final ImageButton refreshWeatherButton = findViewById(R.id.refreshWeather);
    refreshWeatherButton.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        updateWeather();
      }
    });
  }
// Update items that do not require access to Zoo model
Update items that do not require access to Zoo model
Update items that do not require access to Zoo model
private void updateContentThatDoesNotComeFromModel() {
    final Button manageZooButton = findViewById(R.id.manageZooButton);
    final Intent manageZooIntent = new Intent(this, ZooManagerActivity.class);
    manageZooButton.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
        startActivity(manageZooIntent);
      }
    });
    final ImageButton refreshWeatherButton = findViewById(R.id.refreshWeather);
    refreshWeatherButton.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        updateWeather();
      }
    });
  }
private void updateContentThatDoesNotComeFromModel ( ) { final Button manageZooButton = findViewById ( R . id . manageZooButton ) ; final Intent manageZooIntent = new Intent ( this , ZooManagerActivity . class ) ; manageZooButton . setOnClickListener ( new View . OnClickListener ( ) { public void onClick ( View v ) { startActivity ( manageZooIntent ) ; } } ) ; final ImageButton refreshWeatherButton = findViewById ( R . id . refreshWeather ) ; refreshWeatherButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { updateWeather ( ) ; } } ) ; }
Update items that do not require access to Zoo model
Update items that do not require access to Zoo model