tranparent activity

Put your problem here if it does not fit any of the other categories.

tranparent activity

Postby Shweta » Fri Nov 12, 2010 7:10 am

I m trying to create a transparent activity so that my previous activity should be visible.
I tried the following code:
created one xml: (styles.xml) under res/layout/
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3.   <style name="Theme.Transparent" parent="android:Theme">
  4.     <item name="android:windowIsTranslucent">true</item>
  5.     <item name="android:windowBackground">@color/transparent</item>
  6.     <item name="android:windowContentOverlay">@null</item>
  7.     <item name="android:windowNoTitle">true</item>
  8.     <item name="android:windowIsFloating">true</item>
  9.     <item name="android:backgroundDimEnabled">false</item>
  10.   </style>
  11. </resources>
Parsed in 0.001 seconds, using GeSHi

but when i add it in manifest.. as below.. it shows a error saying no resource found that matched the given name..
<activity android:name=".Pause" android:theme="@android:style/Theme.Transparent" >

Help needed... :(
Junior Developer
Junior Developer
Posts: 15
Joined: Tue Oct 26, 2010 8:45 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 4 guests