What about setting the background color of the LinearLayout of the
splash-screen explicitly to (semi)transparent?

On Aug 7, 1:40 pm, Carl Whalley <[email protected]> wrote:
> I have an app with a View which fills the display at 320x480. I made 
> asplashimage which is smaller, 200x200, and the logic to display this
> is ok. It doesn't have the effect I'd like though, which is to show
> thesplashfirst, centered, and without clearing the background which
> at present it is doing by setting to black. Ideally I'd like the
> existing background to become dimmed, as it is when Android Dialogs
> are shown, but I definitely would like to avoid the black border.
> Here is my attempt at fixing this in the apps layout/main.xml file:
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>         android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >
>     <ImageView android:id="@+id/splashscreen"
>         android:scaleType="centerInside"
>         android:adjustViewBounds="true"
>         android:layout_width="wrap_content"
>         android:layout_height="wrap_content"
>         android:src="@drawable/splash"
>         android:layout_gravity="center"/>
> </LinearLayout>
>
> Thanks!
>
> --
> Android Academyhttp://www.androidacademy.com
--~--~---------~--~----~------------~-------~--~----~
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