title: How can I make a button move with a horizontal scroll bar?
body: <p>I have a picture of a map in the background with a button on the bottom and I want to make this scroll with the horizontal scroll bar. It is aligned to the right of the screen at the start and I would like to keep it there. Is this possible?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" android:id="@+id/mapBackground"&gt;
  &lt;HorizontalScrollView android:id="@+id/horizontalScrollView1"
      android:layout_height="fill_parent"
      android:scrollbars="none" android:layout_width="fill_parent"&gt;
  &lt;LinearLayout android:layout_width="fill_parent" android:id="@+id/linearLayout1"
      android:background="@drawable/large_map" android:layout_height="fill_parent"
      android:orientation="vertical"
      android:gravity="bottom"&gt;
  &lt;LinearLayout android:id="@+id/linearLayout4" android:layout_width="fill_parent"
      android:layout_height="400dp"&gt;
  &lt;/LinearLayout&gt;
  &lt;LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout5"
     android:layout_width="320dp" android:gravity="right"&gt;
  &lt;Button android:background="@drawable/bt_play_circle"
      android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/playButton"&gt;&lt;/Button&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/HorizontalScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>