unwanted side margins of my custom listview item layout
<p>I'm getting some weird left and right side margins when using a custom listview item layout. They are margins (or at least not padding of the contianer), since the background doesn't extend to the edge.</p>

<p>In this layout, I'm using a simple vertical LinearLayout with a bunch of textviews and a progressbar. If I switch back the built-in simple_list_item_activated_1.xml, the margins disappear. The linear layout itself doesn't have any layout margins. I specifically stripped it of any attributes, leaving only the id, the layout_width="match_parent" and layout_height="wrap_content", and the margins were still there.</p>

<p>Is there anything I'm missing here?</p>

<p>A screenshot of the problem can be seen here: </p>

<p><img src="http://i.stack.imgur.com/HDD73.jpg" alt="enter image description here"></p>

<p>Edit 1: @Grishu: As I've said earlier, these margins appear even with a very simple layout, such as this</p>

<pre>

    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:orientation="vertical">

        &lt;TextView android:id="@+id/some_text"
            android:layout_width="match_parent" android:layout_height="wrap_content" />

    &lt;/LinearLayout>

</pre>

<p>I just typed this from memory, so it might contain syntax errors. But you get the idea.</p>

<p>Edit2: I just went over all my layouts. The problematic margin was set on one of the parent containers, thus it has nothing to do with list items. Sorry for the spam.</p>
