title: ImageView is NOT SHOWING in a linear layout (android)
body: <p>I'm creating an android application and got into issues already in the first stage.</p>
  
  <p>I'm trying to display an image with an ImageView inside a Layout.</p>
  
  <p>My code is as follows:</p>
  
  <p>activity_starter.xml:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@color/white"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".StarterActivity" &gt;
  
      &lt;ImageView
          android:id="@+id/starterPic"
          android:layout_width="0dp"
          android:layout_height="160dp"
          android:layout_gravity="center"
          android:layout_weight="0.84"
          android:adjustViewBounds="true"
          android:contentDescription="@string/app_name"
          android:src="@drawable/ic_launcher"
          android:visibility="visible" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and StarterActivity.java:</p>
  
  <pre><code>    protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_starter);
          Log.i(LOG_TAG, "Entered Starter Screen");
  
          ImageView mImageView = (ImageView) findViewById(R.id.starterPic); 
          mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
          mImageView.setImageResource(R.drawable.ic_launcher);
          mImageView.setVisibility(ImageView.VISIBLE);
          mImageView.invalidate();
  }
  </code></pre>
  
  <p>The issues are:</p>
  
  <ol>
  <li>I can't hide the title bar on the top (black bar says "WhereIsIt" (app. name)).</li>
  <li>The image in the imageview is not shown.</li>
  </ol>
  
  <p>I've been digging into this for hours, what am I doing wrong?</p>