Hi,
I have 2 activities and need the second one to be translucent when
started by and over the first one.
When I set my activity theme to @android:style/Theme.Translucent, it
works.
I however want to customize alpha. So, following the example in
ApiDemos - app - TranslucentActivity, I write:
in styles.xml:
<style name="Theme" parent="android:Theme">
<style name="Theme.Translucent" parent="android:style/
Theme.Translucent">
<item name="android:windowBackground">@drawable/
translucent_background</item>
<item name="android:windowNoTitle">true</item>
<item name="android:colorForeground">#fff</item>
</style>
and in colors.xml:
<drawable name="translucent_background">#80000000</drawable>
and set my activity theme to @style/Theme.Translucent
But it doesn't work any more, the second activity is black and opaque.
I also tried with (notice the @) :
<style name="Theme.Translucent" parent="@android:style/
Theme.Translucent">
What's wrong ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---