Q:

Connect ImageButton to edge of screen in drawable background 

Trying to get the top left white space to touch the edge of the screen but can't figure out what I am doing wrong. I don't want the green showing on the left, I want the white covering it up.

BUTTON CODE:

<ImageView
    android:id="@+id/itempicture"
    android:layout_width="0dp"
    android:layout_height="fill_parent"
    android:layout_weight="2"
    android:background="@drawable/profilepicture" />

DRAWABLE/PROFILEPCTURE_DEFAULT CODE:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

    <item><shape>
            <gradient android:type="linear" android:angle="270" android:startColor="#FFFFFF" android:centerColor="#FFFFFF" android:endColor="#424242" />

            <stroke android:width="0dp"></stroke>

            <corners android:bottomRightRadius="35dp" />

            <padding android:bottom="5dp" android:left="5dp" android:right="5dp" android:top="5dp" />
        </shape></item>

</selector>

A:

To fix this problem I had to change the padding from the LinearLayout holding the object by adding android:paddingLeft="0dp" to LinearLayout xml code in the main. This is different then changing the padding within the drawable which was the wrong solution.

