Two misplaced lines in UI for Android activity
<p>I have a problem with designing an UI Android activity. There are two blocks of misplaced graphics on the left and right of the activity - they are two lines just bellow the titlebar with 1px height and about 5-10px width. They cause buttons to break at their left and right parts. I cannot figure out what the problem is. I am using Eclipse with Android SDK 0.9.9. The lines appear not only with the emulator but in a HTC Wildfire (Android 2.1). These lines are also visible in a newly created Android project (HelloWorld).</p>

<p>Sorry, but I was not allowed to post images, being too new here :)</p>

<p><a href="http://www.ka-service.eu/MisplacedLines.png" rel="nofollow">Link to the Broken widgets - note the button's left and right sides</a></p>

<p>XML layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_height="fill_parent" android:layout_width="fill_parent" android:fitsSystemWindows="true"&gt;
&lt;TextView android:layout_height="wrap_content" android:text="This text view should act as header  " android:id="@+id/expenseHeaderTxt" android:layout_width="fill_parent" android:paddingLeft="5px" android:paddingRight="5px"/&gt;
&lt;ScrollView android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_marginBottom="50dip" android:id="@+id/expenseScrollView"&gt;
  &lt;RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollbars="none" android:paddingLeft="5px" android:paddingRight="5px"&gt;
    &lt;EditText android:layout_height="wrap_content" android:id="@+id/expenseAmountEdit" android:hint="@string/ExpenseAmountHint" android:layout_width="wrap_content" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:selectAllOnFocus="true" android:digits="0123456789" android:inputType="number|numberDecimal" android:maxLines="1"&gt;&lt;/EditText&gt;
    &lt;EditText android:layout_height="wrap_content" android:id="@+id/expenseTypeEdit" android:layout_width="fill_parent" android:layout_toLeftOf="@+id/expenseAmountEdit" android:hint="@string/ExpenseSpendTypeHint" android:inputType="text|textCapSentences" android:maxLines="1"&gt;&lt;/EditText&gt;
    &lt;ToggleButton android:layout_below="@id/expenseTypeEdit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/expenseTypeSignToggle" android:textOn="@string/ExpenseTypeSignPlusToggle" android:textOff="@string/ExpenseTypeSignMinusToggle"&gt;&lt;/ToggleButton&gt;
&lt;EditText android:layout_below="@id/expenseTypeSignToggle" android:layout_height="wrap_content" android:id="@+id/expenseNoteEdit" android:layout_width="fill_parent" android:hint="@string/ExpenseNoteHint"&gt;&lt;/EditText&gt;
&lt;/RelativeLayout&gt;
&lt;/ScrollView&gt;
&lt;RelativeLayout android:layout_marginTop="-50dip" android:gravity="bottom" android:layout_height="wrap_content" android:layout_width="fill_parent" android:paddingLeft="5px" android:paddingRight="5px"&gt;
  &lt;Button android:id="@+id/expenseAddBtn" android:layout_width="fill_parent" android:text="A button that should always be at the bottom" android:layout_height="wrap_content"/&gt;
&lt;/RelativeLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>
