ImageView bounds are larger than expected in android layout

Posted by Hamy on Stack Overflow See other posts from Stack Overflow or by Hamy
Published on 2010-03-27T01:13:30Z Indexed on 2010/03/27 1:23 UTC
Read the original article Hit count: 905

Filed under:
|
|
|

Hey all,

This is a layout that I have defined in an app. As you can see, I would like the TextView "@details/image_time_counter" to be aligned with the bottom right of the image. Unfortunately, this is currently what shows - app - hierarchy viewer all - HV part 2. HierarchyViewer reports that the ImageView has bounds much bigger than what I am expecting. Can anyone explain these bounds, or just tell me how to make the bounds be the same as the image size?

Thanks, Hamy

<RelativeLayout android:id="@+id/RelativeLayout01"
 android:layout_width="fill_parent" android:layout_height="fill_parent"
 xmlns:android="http://schemas.android.com/apk/res/android">

</RelativeLayout>

© Stack Overflow or respective owner

Related posts about android

Related posts about imageview