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

Hi,
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.003 seconds, using GeSHi 1.0.8.4

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... :(
Shweta
Junior Developer
Junior Developer
 
Posts: 15
Joined: Tue Oct 26, 2010 8:45 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], MSNbot Media and 20 guests