1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<resources>
<style name=
"Theme"
parent=
"android:Theme"
>
<item name=
"android:windowAnimationStyle"
>
@style
/Animation</item>
</style>
<style name=
"Animation"
>
<item name=
"android:activityOpenEnterAnimation"
>
@null
</item>
<item name=
"android:activityOpenExitAnimation"
>
@null
</item>
<item name=
"android:activityCloseEnterAnimation"
>
@null
</item>
<item name=
"android:activityCloseExitAnimation"
>
@null
</item>
<item name=
"android:taskOpenEnterAnimation"
>
@null
</item>
<item name=
"android:taskOpenExitAnimation"
>
@null
</item>
<item name=
"android:taskCloseEnterAnimation"
>
@null
</item>
<item name=
"android:taskCloseExitAnimation"
>
@null
</item>
<item name=
"android:taskToFrontEnterAnimation"
>
@null
</item>
<item name=
"android:taskToFrontExitAnimation"
>
@null
</item>
<item name=
"android:taskToBackEnterAnimation"
>
@null
</item>
<item name=
"android:taskToBackExitAnimation"
>
@null
</item>
</style>
2
.在不想有动画的Activity上设置此属性即可
<activity android:name=
".XXXXXX"
android:label=
"@string/app_name"
android:screenOrientation=
"nosensor"
android:theme=
"@style/Theme"
>
</resources>
|