No need to write " android:stateNotNeeded="true" Just use given code in
Manifest ..Name n Theme..

<activity android:name="Menu" android:theme="@style/MyTheme"></activity>
And use code in Style file like this

<style name="MyTheme">
and include your corresponding attribute no need to inherit parent theme...
Tell me what u want to do exactly..

On Thu, Jun 18, 2009 at 10:22 AM, z <zl25dre...@gmail.com> wrote:

>
> I did that, nothing was changed
>        <activity
>            android:stateNotNeeded="true"
>            android:theme="@style/Theme"
>            .........
>
>
> On Jun 18, 12:49 am, peeyush varshney <varshney.peey...@gmail.com>
> wrote:
> > hi,
> > you need to set this theme in your manifest file with corresponding
> > Activity..
> >
> >
> >
>  > On Thu, Jun 18, 2009 at 9:41 AM, z <zl25dre...@gmail.com> wrote:
> >
> > > Anyone? I tried the following but it didnt seem to have any effects at
> > > all?
> >
> > >    <style name="Theme" parent="android:Theme">
> > >        <item name="android:windowBackground">@null</item>
> > >        <item name="android:windowNoTitle">true</item>
> > >        <item name="android:windowAnimationStyle">@style/
> > > My.Animation.Activity</item>
> >
> > >    </style>
> >
> > >    <style name="My.Animation.Activity"
> > > parent="android:Animation.Activity">
> >
> > >        <item name="android:activityOpenEnterAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:activityOpenExitAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:activityCloseEnterAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:activityCloseExitAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskOpenEnterAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskOpenExitAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskCloseEnterAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskCloseExitAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskToFrontEnterAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskToFrontExitAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskToBackEnterAnimation">@anim/
> > > slide_out_top</item>
> > >        <item name="android:taskToBackExitAnimation">@anim/
> > > slide_out_top</item>
> > >    </style>
> >
> > > On Jun 17, 3:40 pm, z <zl25dre...@gmail.com> wrote:
> > > > Hi, can someone tell me if I can change the activity animation by
> > > > applying a theme?
> >
> > > >     <style name="Animation.Activity">
> > > >         <item
> name="activityOpenEnterAnimation">@anim/task_open_enter</
> > > > item>
> > > >         <item name="activityOpenExitAnimation">@anim/task_open_exit</
> > > > item>
> > > >         <item name="activityCloseEnterAnimation">@anim/
> > > > task_close_enter</item>
> > > >         <item
> name="activityCloseExitAnimation">@anim/task_close_exit</
> > > > item>
> > > >         <item name="taskOpenEnterAnimation">@anim/task_open_enter</
> > > > item>
> > > >         <item
> name="taskOpenExitAnimation">@anim/task_open_exit</item>
> > > >         <item name="taskCloseEnterAnimation">@anim/task_close_enter</
> > > > item>
> > > >         <item name="taskCloseExitAnimation">@anim/task_close_exit</
> > > > item>
> > > >         <item
> name="taskToFrontEnterAnimation">@anim/task_open_enter</
> > > > item>
> > > >         <item name="taskToFrontExitAnimation">@anim/task_open_exit</
> > > > item>
> > > >         <item
> name="taskToBackEnterAnimation">@anim/task_close_enter</
> > > > item>
> > > >         <item name="taskToBackExitAnimation">@anim/task_close_exit</
> > > > item>
> > > >     </style>
> >
> > > > I know the change will not be global, but is it even possible to make
> > > > the change to be applied within my own app? For example, if i have an
> > > > app that does not want to standard slide in/out animation on start/
> > > > exit, is it possible to change them?
> >
> > > > Thanks,
> >
> > --
> > Thank & Regards
> > Peeyush Varshney
>  >
>


-- 
Thank & Regards
Peeyush Varshney

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to