title: How to put Three imageview buttons on same line in Android
body: <p>I have three <strong>imageViews</strong> There I want to set all these <code>ImageView</code> into one line. I have pasted my current xml code below.</p>
  
  <p>
      </p>
  
  <pre><code>    &lt;RelativeLayout
          android:id="@+id/myFragement"
          android:layout_width="wrap_content"
          android:layout_height="306dp"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="44dp"
          android:layout_weight="1.77"
          android:orientation="horizontal" &gt;
      &lt;/RelativeLayout&gt;
  
       &lt;ImageView
           android:id="@+id/login_button"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:layout_alignParentLeft="true"
           android:layout_alignParentTop="true"
           android:src="@drawable/login_non_click" /&gt;
  
      &lt;ImageView
          android:id="@+id/comapre_now_button"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:src="@drawable/compare_now_non_click_state" /&gt;
  
      &lt;ImageView
          android:id="@+id/search_button"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/comapre_now_button"
          android:src="@drawable/search_non_click" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>After i have sloved. posted my App's image i think this is helpful all</strong>
  <img src="https://i.stack.imgur.com/xY1P0.jpg" alt="After editing i have posted my App&#39;s image i think this is helpful"></p>
  
  <p>After editing i have posted my App's all Xml code i think this is helpful all.</p>
  
  <p>
  </p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/myFragement"
      android:layout_width="wrap_content"
      android:layout_height="306dp"
      android:layout_alignParentRight="true"
      android:layout_alignParentTop="true"
      android:layout_marginTop="44dp"
      android:layout_weight="1.77"
      android:orientation="horizontal" &gt;
  
  &lt;/RelativeLayout&gt;
  
   &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:gravity="center_horizontal"
          android:orientation="horizontal"
          android:weightSum="3" &gt;
       &lt;ImageView
               android:id="@+id/login_button"
                    android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
  
               android:src="@drawable/login_non_click" /&gt;
  
          &lt;ImageView
              android:id="@+id/comapre_now_button"
               android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
              android:src="@drawable/compare_now_non_click_state" /&gt;
  
          &lt;ImageView
              android:id="@+id/search_button"
                android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
              android:src="@drawable/search_non_click" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>