title: Set Button in the top of relative layout in Android
body: <p><a href="https://i.stack.imgur.com/XmPRkm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XmPRkm.jpg" alt="enter image description here"></a></p>
  
  <p>I need put the button above image in this relative layout but appear in the top how can i do?
  So I need image and above the button. any help?</p>
  
  <pre><code>        &lt;RelativeLayout style="@style/row50percent"&gt;
          &lt;ImageView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/imgProfileBackground"
              android:adjustViewBounds="true"
              android:layout_centerHorizontal="true"
              android:layout_gravity="center_horizontal"
              android:src="@drawable/bg_profile"/&gt;
          &lt;ImageView
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:id="@+id/imgProfile"
              android:adjustViewBounds="true"
              android:gravity="center_vertical"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:src="@drawable/logo"/&gt;
  
          &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/choose_picture"
              android:id="@+id/buttonSelectPicture"
              android:layout_marginLeft="15dp"
              android:layout_marginRight="15dp"
              android:background="@drawable/btn_change_picture"
              android:textColor="#FFFFFF"
              android:layout_gravity="center_horizontal|center"/&gt;
  
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>And Styles is </p>
  
  <pre><code>    &lt;style name="row50percent"&gt;
      &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;0dp&lt;/item&gt;
      &lt;item name="android:orientation"&gt;vertical&lt;/item&gt;
      &lt;item name="android:layout_gravity"&gt;center_horizontal&lt;/item&gt;
      &lt;item name="android:layout_weight"&gt;1&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>