title: Android Studio game not using entire android display
body: <p>Upon starting my game, the game does not utilise the entire android screen. This only happens with the game itself, shown by the image as the user is unable to reach the bottom of the screen. Have tried to find a solution however all attempts I have tried seems not to work. Unsure which code to supply, and therefore do not want to provide a large amount of code. Let me know which code to post. Any help would be appreciated. </p>
  
  <p><a href="https://i.stack.imgur.com/E1qba.png" rel="nofollow noreferrer">Image of game</a></p>
  
  <pre><code>package com.example.spaceattack;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  import android.os.Bundle;
  import android.os.Handler;
  
  import java.util.Timer;
  import java.util.TimerTask;
  
  public class MainActivity extends AppCompatActivity
  {
      private SpaceShipView gameView;
      private Handler handler = new Handler();
      private final static long Interval = 30;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          gameView = new SpaceShipView(this);
          setContentView(gameView);
  
          Timer timer = new Timer();
          timer.schedule(new TimerTask() {
              @Override
              public void run()
              {
                  handler.post(new Runnable() {
                      @Override
                      public void run()
                      {
                          gameView.invalidate();
  
                      }
                  });
              }
          }, 0, Interval);
  
      }
  }
  </code></pre>