Hi,
        Ya, It is true..Transparency is not working with r1 patch, You can
take Android new patch( r2 ).. it will give proper response..

On Thu, Jun 18, 2009 at 8:02 AM, Sarnoth <jesse.st...@gmail.com> wrote:

>
> I believe I have found a graphics bug introduced in the 1.5 platform.
> I'm looking for some confirmation (or a description of what I'm doing
> wrong) before reporting it as a real bug.
>
> I have a SurfaceView that fills the screen and on top of that I have a
> LinearLayout that wraps some other components that overlay the
> surface. These other components are not visible most of the time, and
> the LinearLayout has a transparent background so that the SurfaceView
> is unobstructed until the other components are made visible. Under 1.0
> and 1.1 this all worked with a background of #00000000 for the
> LinearLayout. Now under 1.5 there is a black rectangle obstructing my
> surface unless I give the LinearLayout background some color. I can
> still keep the transparency so it is still invisible as it should be
> but it is strange that it can't be black and invisible anymore. My
> layout is below. The background of #00000001 works, but changing it to
> #00000000 results in a black rectangle.
>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
>    android:keepScreenOn="true"
>    android:background="#000">
>    <SurfaceView
>        android:id="@+id/surface"
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent"/>
>    <LinearLayout
>        android:layout_width="fill_parent"
>        android:layout_height="wrap_content"
>        android:background="#00000001"
>        android:paddingRight="85dp"
>        android:layout_centerInParent="true"
>        android:orientation="vertical"
>        android:gravity="center_horizontal">
>        <TextView
>            android:id="@+id/game_large"
>            android:layout_width="wrap_content"
>            android:layout_height="wrap_content"
>            android:paddingBottom="8dp"
>            android:background="#00000000"
>            android:textColor="#FFFFFFFF"
>            android:shadowColor="#FF000000"
>            android:shadowRadius="6"
>            android:textSize="36sp"
>            android:textStyle="bold"
>            android:visibility="invisible"
>            android:text="@string/paused"/>
>        <TextView
>            android:id="@+id/game_small"
>            android:layout_width="wrap_content"
>            android:layout_height="wrap_content"
>            android:layout_centerHorizontal="true"
>            android:background="#00000000"
>            android:textColor="#FFFFFFFF"
>            android:shadowColor="#FF000000"
>            android:shadowRadius="3"
>            android:textSize="18sp"
>            android:textStyle="bold"
>            android:visibility="invisible"
>            android:text="@string/paused_detail"/>
>    </LinearLayout>
> </RelativeLayout>
>
> >
>


-- 
Thank & Regards
Peeyush Varshney

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to