title: How to center a Imageview on the screen? (with java code)
body: <p>atm i'm using this code, but this code doesn't works for me, because the code is stretching the Image on the screen, i dont want that, i need that the image uses his real size (200x210)</p>
  
  <pre><code>        FrameLayout fl = new FrameLayout(this.getApplicationContext());
          splash = new ImageView(getApplicationContext());
          splash.setImageResource(R.drawable.logo2);      
          fl.addView(splash);
          fl.setForegroundGravity(Gravity.CENTER);
          fl.setBackgroundColor(Color.BLACK);
          setContentView(fl);
  </code></pre>
  
  <p>How to do it without making a giant image that it is using all the screen?</p>