Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 737843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:46:06+00:00 2026-05-14T07:46:06+00:00

I have used ImageView’s before and understand the different scale types that can be

  • 0

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.

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…

Does anyone have any ideas or perhaps a workaround?

Thanks in advance!

EDIT: Here is the XML for the group rows in an ExpandableListView

<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="6dip"
>
<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"
/>

<!--  App Name -->
<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"
/>

<!-- Package Information -->
<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"
/>
</RelativeLayout>
  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:46:06+00:00Added an answer on May 14, 2026 at 7:46 am

    Thanks to Roman, this problem has been solved! I removed the min and max width and height lines and changed the android:layout_width/height attributes to the size I wanted and everything is now working out just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a layout that can display a picture on three different areas.
We have used Shibboleth to authenticate users. It works great. The issue is that
I have used a plugin that uses prototype js, it's working fine but the
I have used auto complete textbox previously. That auto complete works only when i
developing iphone app, I have used a UIImageview and i have set an image
I have used UIScrollView before, and am using it now, and never had a
Hi hoping someone can help. I have a list view that displays various textviews,editviews
I have an UIView that is used for overlaying a cameraPicker. Into this View,
I have an Imageview which is zoomed and rotated(I have used multitouch zooming ).
can you have a layout with an imageview and textview for a row in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.