title: non static setGravity cannot be referenced from static context
body: <p>I'm very new to android development, but know a little Java.  I am having problems knowing where to place Toast.setGravity(Gravity.TOP,0,0) in my code.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>package ca.ignitestudio.geoquiz;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.view.Gravity;
  import android.view.View;
  import android.widget.Button;
  import android.widget.Toast;
  
  
  public class QuizActivity extends AppCompatActivity {
  
  private Button mTrueButton;
  private Button mFalseButton;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_quiz);
  
  
  
      mTrueButton = (Button) findViewById(R.id.true_button);
      mTrueButton.setOnClickListener(new View.OnClickListener(){
          @Override
          public void onClick(View v) {
              Toast.makeText(QuizActivity.this, R.string.correct_toast, Toast.LENGTH_SHORT).show();
              Toast.setGravity(Gravity.TOP,0,0);
          }
      });
      mFalseButton = (Button) findViewById(R.id.false_button);
      mFalseButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Toast.makeText(QuizActivity.this, R.string.incorrect_toast, Toast.LENGTH_SHORT).show();
          }
      });
  }
  </code></pre>
  
  <p>}</p>