In XML, I have a custom list item view that I am inflating within the getView() method of my adapter for my ListView. In XML, how can I make my custom ListView item always half the width of the screen (maybe add some padding too)? I don't think adding another widget would work like the suggested solutions I've seen since this is a list item.

Edit: 

To clarify, I don't think this is a problem with my xml code, but here's what I mean. If I have a custom layout like this:

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/LinearLayout1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:weightSum="1.0"
    android:paddingTop="10dp" 
    >

    <ImageView
        android:id="@+id/item_image"
        android:layout_width="218dp"
        android:layout_height="212dp"
        android:layout_gravity="right"
        android:adjustViewBounds="true"

        android:scaleType="fitCenter"
        android:src="@drawable/..." />

</LinearLayout>

```

I have a hardcoded width (which I don't think is best practice) so I want to make that width 1/2 of the screen total width. Clearly, this XML is much simplified but I hope it gets across the question.

Apologies if I am missing something rather obvious.

**Edit**:

Adding another Layout that has the same solves this.

**Edit 2**:
Never mind. I've noticed the following behavior:
If I add another layout, it'll inflate *everything* and so I'll literally get half empty space width for each list item. I have to make the top most layout half the screen width I guess. How can I approach this?