I can't think of anything that could have changed here -- there is really
nothing special the view hierarchy does in this case, it is just drawing the
views on on top of the other in Z-order.  And we certainly have transparent
background working in many other places, such as the background image used
for buttons etc.

Does this change happen with the current binary of your app, or after you
recompile it against 1.5?

On Sat, Apr 25, 2009 at 12:32 PM, Chister Nordvik <[email protected]>wrote:

>
> Hi!
>
> I have a lot of Views where I have set a background image on the top
> LinearLayout and then I have nested a new linear layout below with a
> background that is semi-transparent. This works great in 1.1, but in
> 1.5 the transparency is just disregarded and this breaks my app as the
> text on top is now unreadable.
>
> Is this a bug or a feature? Is there a better way of doing this? Very
> grateful for any tips!
>
> Code example:
>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>        android:orientation="vertical" android:layout_width="fill_parent"
>        android:layout_height="fill_parent" android:background="@drawable/
> field"
>        android:id="@+id/root"
>        >
>        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>                android:orientation="vertical"
> android:layout_width="fill_parent"
>                android:layout_height="wrap_content" android:id="@+id/bg"
>                android:background="#aa000000">
> ...
>
> -Christer
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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