<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/transparent"
    android:weightSum="1">

    <ImageButton
        android:layout_width="72dp"
        android:layout_height="72dp"
        android:id="@+id/imageView"
        android:layout_weight="0.17"
        android:background="@android:color/transparent" />

</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/transparent"
    android:weightSum="1">

    <ImageButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:cropToPadding="false"
        android:adjustViewBounds="true"
        android:id="@+id/imageView"
        android:layout_weight="0.17"
        android:background="@android:color/transparent"
        android:scaleType="fitXY" />

</LinearLayout>
Allow proper resizing of widget image
HBM_Widget: Allow proper resizing of widget image
