windowAnimationStyle - ignored in theme?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

windowAnimationStyle - ignored in theme?

Postby darolla » Tue Feb 03, 2009 4:20 pm

Hi,

I'd like to have some fancy effects on my Activities when entering or exiting.

So I tried to use theming.

But it seems that its completly ignored?

themes.xml (activated in Manifest)
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <item name="android:windowAnimationStyle">@style/Animation.Activity</item>
  3.  
  4.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


styles.xml
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <style name="Animation" parent="android:Animation"/>  
  3.  
  4. <style name="Animation.Activity" parent="android:Animation.Activity">
  5.  
  6.     <item name="android:activityOpenEnterAnimation">@anim/fade_in</item>
  7.  
  8.     <item name="android:activityOpenExitAnimation">@anim/fade_in</item>
  9.  
  10.     <item name="android:activityCloseEnterAnimation">@anim/fade_in</item>
  11.  
  12.     <item name="android:activityCloseExitAnimation">@anim/fade_in</item>
  13.  
  14. </style>
  15.  
  16.  
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


fade_in.xml
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <?xml version="1.0" encoding="utf-8"?>
  3.  
  4. <alpha xmlns:android="http://schemas.android.com/apk/res/android"
  5.  
  6.         android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="1000" />
  7.  
  8.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


Greetings,
DaRolla
User avatar
darolla
Master Developer
Master Developer
 
Posts: 273
Joined: Thu Sep 25, 2008 5:16 pm
Location: Dortmund, Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests