title: 2 drawable button Horizontally without space between 2 button and onclick change drawable button color
body: <p>am new to android. i would like to have two drawable bg button Horizontally. Button1(Tour Routes) and button2(Tour Item) without space between two button and while onClick button1,i like to display blue drawable (Tour Routes) on button1 and drawable hover background on button2(Tour Items) and Viceversa.   Thank You </p>
  
  <p>Here is My layout Example. I tried to create drawable xml but its not working fine.</p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/button"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@+id/header"
      android:layout_marginLeft="8dp"
      android:layout_marginRight="8dp"      
      android:layout_marginTop="6dp"
      android:orientation="horizontal" &gt;
  
  &lt;Button
      android:layout_weight="1"
      android:id="@+id/button1"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:text="T"
      android:background="@drawable/btn"
      android:onClick="button1"
  
       /&gt;
  
   &lt;Button
      android:layout_weight="1"
      android:id="@+id/button2"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:text="TI"
      android:background="@drawable/btn"
       android:onClick="button2"
      /&gt;
  </code></pre>
  
  <p></p>