title: how to show imageview in center of the screen?
body: <p>I created carousel design application, it's working fine. I wish to show one default logo in center of the screen. so i am tried many ways, please help me.</p>
  
  <p>This is my screen shot:
  <img src="https://i.stack.imgur.com/KgQQA.png" alt="enter image description here"></p>
  
  <p>i wish to show one logo in center of the carousel design.</p>
  
  <p>This is my xml source code:</p>
  
  <p>
  
  
  <pre><code>&gt;
  
  &lt;LinearLayout
      android:layout_weight="0.5"
      android:padding="5dip"
      android:gravity="top"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" 
      &gt;
          &lt;com.globems.controls.Carousel
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:id="@+id/carousel"  
              pj:UseReflection="true"
              pj:Items="@array/entries"
              pj:Names="@array/names" 
              pj:SelectedItem="0"
              android:animationDuration="200"
          /&gt;    
           &lt;ImageView
      android:id="@+id/imageView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:src="@drawable/ic_launcher" /&gt;
  
  &lt;/LinearLayout&gt;     
  </code></pre>
  
  <p></p>
  
  <p>in this code I am using imageview to show the logo but its not working.</p>
  
  <p>Updated xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:pj="http://schemas.android.com/apk/res/com.globems.main"
      xmlns:bm="com.carousel.main"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background ="@drawable/blue3"
  
      &gt;
  
      &lt;RelativeLayout
          android:layout_weight="0.5"
          android:padding="5dip"
          android:gravity="top"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" 
          &gt;
              &lt;com.globems.controls.Carousel
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:id="@+id/carousel"  
                  pj:UseReflection="true"
                  pj:Items="@array/entries"
                  pj:Names="@array/names" 
                  pj:SelectedItem="0"
                  android:animationDuration="200"
              /&gt;    
          &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/ic_launcher"
          android:centerinHorizontal="true"
          /&gt;
  
      &lt;/RelativeLayout&gt;       
  &lt;/RelativeLayout&gt;
  </code></pre>