<ImageButton
android:id="@+id/SwapTextButton"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_weight="0.5"
android:background="@drawable/my_gradient_button"
android:scaleType="fitXY"
android:src="@drawable/extended_text" />
Try this, fitXY for scaletype should "fill" your ImageButton