I am using a layer-list to form a composite of several drawables as
the src to a very thin subclass of ImageView. Both of the images below
are the same size. Based upon the gravity for the second bitmap, I
would expect to be able to set its item's top and left to arbitrary
values and see the clouds image clipped on bottom and right
accordingly and without any effect on the size of the first image.
Instead, what happens is that both images get rescaled as though no
clipping is occurring.
Is this a bug?
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/wthr_image_sunny"
android:gravity="center" />
</item>
<item
android:top="0px"
android:left="0px">
<bitmap
android:src="@drawable/wthr_image_clouds"
android:gravity="top|left|clip_horizontal|clip_vertical" /
>
</item>
</layer-list>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en