File tree Expand file tree Collapse file tree
java/de/eldecker/droid/romanhelden Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,6 +149,13 @@ private void neuerName() {
149149 */
150150 private void starteAnimation () {
151151
152+ boolean animationAktiv = _sharedPreferences .getBoolean ( "animation_aktiv" , false );
153+
154+ if ( animationAktiv == false ) {
155+
156+ return ;
157+ }
158+
152159 Animation tweenAnimation =
153160 AnimationUtils .loadAnimation ( this ,
154161 R .anim .tween_animation );
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<set xmlns : android =" http://schemas.android.com/apk/res/android" >
33
4+ <!-- Innerhalb von 1,5 Sekunden soll die Transparenz von 10% auf 100% erhöht werden -->
45 <alpha
56 android : fromAlpha =" 0.1"
67 android : toAlpha =" 1.0"
78 android : duration =" 1500" />
89
10+ <!-- Innerhalb von 1,5 Sekunden soll die Größe von 10% auf 100% erhöht werden -->
911 <scale
1012 android : fromXScale =" 0.1"
1113 android : toXScale =" 1.0"
Original file line number Diff line number Diff line change 1111
1212 <string name =" pref_literature_genre_title" >Literatur-Genre</string >
1313 <string name =" pref_literature_genre_summary" >Genre für das Namen erzeugt werden sollen</string >
14-
15- <string name =" pref_zaehler_name" >Anzahl erzeugte Namen</string >
14+ <string name =" pref_enable_animation_title" >Animationen</string >
1615
1716 <string name =" genre_kinderbuch" >Kinderbuch</string >
1817 <string name =" genre_western" >Western</string >
3029
3130 <string name =" actionbar_subtitel_genre" >Genre: %1s</string >
3231
32+
33+
3334</resources >
Original file line number Diff line number Diff line change 1414 android : entries =" @array/literatur_genres_anzeigenamen"
1515 android : entryValues =" @array/literatur_genres_techwerte" />
1616
17+ <SwitchPreferenceCompat
18+ android : key =" animation_aktiv"
19+ android : title =" @string/pref_enable_animation_title"
20+ android : summary =" "
21+ android : defaultValue =" true" />
22+
1723 <!--
1824 Es gibt noch die Hidden Preference "namen_zaehler", die programmatisch
1925 geschrieben und gelesen wird, aber auf dem Preferences-Screen nicht
You can’t perform that action at this time.
0 commit comments