Note that there are some explanatory texts on larger screens.

plurals
  1. POImageView scale type not working in list activity
    primarykey
    data
    text
    <p>I have used ImageView's before and understand the different scale types that can be set... However I am having an incredibly difficult time trying to get an ImageView to scale properly in the row of a ListActivity or an ExpandableListActivity.</p> <p>I have tried setting the android:scaleType property to every single value but the image never scales down. I have set the min and max sizes as well and they don't seem to have any effect. I have done both of these things in both the XMl and in code to no avail...</p> <p>Does anyone have any ideas or perhaps a workaround?</p> <p>Thanks in advance!</p> <p>EDIT: Here is the XML for the group rows in an ExpandableListView</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="6dip" &gt; &lt;ImageView android:id="@+id/item_selection_icon_id" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:layout_marginLeft="30dp" android:minWidth="10dp" android:minHeight="10dp" android:maxWidth="10dp" android:maxHeight="10dp" android:scaleType="centerInside" /&gt; &lt;!-- App Name --&gt; &lt;TextView android:id="@+id/item_app_name_id" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/item_selection_icon_id" android:layout_alignBaseline="@id/item_selection_icon_id" android:textStyle="normal|bold" android:textSize="24sp" /&gt; &lt;!-- Package Information --&gt; &lt;TextView android:id="@+id/item_app_pkg_name_id" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/item_app_name_id" android:layout_toRightOf="@id/item_selection_icon_id" android:layout_weight="2" android:textStyle="italic" android:textSize="12sp" /&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload