title: How to Display list-view items in horizontal Android
body: <p>I am working on list view..list view items display in vertical.but I am display items in horizontal but not show the items in horizontal.
  and simple_list_item_1 is not working..I am changing gravity left or right but items show vertically..here is my code</p>
  
  <p>here is content_main</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="horizontal"&gt;
  
  
  
          &lt;EditText
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/editText"
              android:layout_centerHorizontal="true" /&gt;
          &lt;Button
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Searach Now"
              android:id="@+id/button"
              android:layout_alignParentTop="true"
              android:layout_toLeftOf="@+id/editText" /&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
  
  
          &lt;ListView
              android:id="@+id/listView1"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
  
              android:layout_below="@+id/headingText"&gt;
  
  
          &lt;/ListView&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>here is simple_list_item. XML</p>
  
  <pre><code> &lt;TextView
          android:id="@+id/text1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="left"&gt;&lt;/TextView&gt;
  
      &lt;TextView
          android:id="@+id/text2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right"
         &gt;&lt;/TextView&gt;
  
  &lt;/Relativelayout&gt;
  </code></pre>