Back to project page sixgrid.
The source code is released under:
MIT License
If you think the Android project sixgrid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.pure.sixgrid.preference; //from w ww . j a v a 2s. com import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.ListPreference; import io.pure.sixgrid.MainActivity; import io.pure.sixgrid.R; public class AnimationPicker extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.anim); ListPreference anim = (ListPreference)findPreference("swipeanim"); anim.setEntries(new String[] {"Normal", "Fade In", "Fade Out", "Depth", "Depth (No Fade)", "Zoom", "Zoom (No Fade)"}); anim.setEntryValues(new String[] {"normal", "fadein", "fadeout", "depth", "nfdepth", "zoom", "nfzoom"}); } @Override public void onBackPressed() { Intent main = new Intent(AnimationPicker.this, MainActivity.class); main.putExtra("var", true); startActivity(main); overridePendingTransition(R.anim.slide_up_bottom, R.anim.slide_down_bottom); finish(); } }