hey everybody, My first post here :)

so I've been trying to set some backgrounds on my views but they cause
the view to stretch to the size of the background bitmap

let's say I have an image that's 500px height
and my view is 200px

after setting it as background the view becomes 200px height :s
the view height is set to wrap content...

the reason my bitmaps are bigger than the views is because the view
can change size depending on its content...

<bitmap xmlns:android="http://schemas.android.com/apk/res/android";
        android:src="@drawable/old_wall"
        android:tileMode="repeat"
        android:gravity="top|left|clip_horizontal|clip_vertical" />

as you can see I tried to set the bitmap gravity to clip_vertical and
clip horizontal but that didn't help either...

I've been searching for a solution for a week now.... anybody?

-- 
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

Reply via email to