Link to home
Start Free TrialLog in
Avatar of GlobaLevel
GlobaLevelFlag for United States of America

asked on

android - error:<style> cannot appear in tag <style> only <item>

is there a problem with this?:

<style name="Animations" parent="@android:Animation" >
    <style name="Animations.SplashScreen">
        <item name="android:windowEnterAnimation">@anim/appear</item>
        <item name="android:windowExitAnimation">@anim/disappear</item>
    </style>
</style>
       
ASKER CERTIFIED SOLUTION
Avatar of rkpune
rkpune
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GlobaLevel

ASKER

im still getting errors with this thing:

It doesnt like the selector when I add it...doesnt like the item...

I would think that this normal coding standard for android...
android:windowEnterAnimation
<resources>
 <!--    <style name="Theme.Transparent" parent="android:Theme">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
    </style>    
    
<style name="Animations" parent="@android:Animation" >
    <style name="Animations.SplashScreen">
        <item name="android:windowEnterAnimation">@anim/appear</item>
        <item name="android:windowExitAnimation">@anim/disappear</item> 
    </style>
</style>

        --> 
    
    

<item android:state_focused="true"
         android:state_pressed="false"
         android:drawable="@anim/appear" />
<item android:state_focused="true"
         android:state_pressed="true"
         android:drawable="@anim/disappear" />
<item android:state_focused="false" 
         android:state_pressed="true"
         android:drawable="@anim/appear" /> 
<item android:drawable="@anim/appear" />


    
        
</resources>

Open in new window

the problem, im having is that I need to click on a button on my screen in android and have it got to another .xml...why is that so difficult?
the user should click on a button  on a.xml and b.xml should open for the user to see...