Android Open Source - MagicViews Example Preference Fragment






From Project

Back to project page MagicViews.

License

The source code is released under:

Apache License

If you think the Android project MagicViews listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ivankocijan.TestApp;
/*from w w  w  . j a v a  2  s .c o m*/
import android.os.Bundle;
import android.preference.PreferenceFragment;

/**
 * Created by ivankocijan on 22.05.2014..
 */
public class ExamplePreferenceFragment extends PreferenceFragment {

    private static ExamplePreferenceFragment preferenceFragment;

    public static ExamplePreferenceFragment getInstance () {

        if (preferenceFragment == null) {

            synchronized (ExamplePreferenceFragment.class) {

                if (preferenceFragment == null) {

                    preferenceFragment = new ExamplePreferenceFragment();

                }

            }

        }

        return preferenceFragment;

    }

    @Override
    public void onCreate (Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        addPreferencesFromResource(R.xml.example_preference);

    }
}




Java Source Code List

com.ivankocijan.TestApp.ExamplePreferenceFragment.java
com.ivankocijan.TestApp.TestAppApplication.java
com.ivankocijan.TestApp.activites.MainActivity.java
com.ivankocijan.TestApp.activites.PreferenceExampleActivity.java
com.ivankocijan.magicviews.FontNotFoundException.java
com.ivankocijan.magicviews.MagicFont.java
com.ivankocijan.magicviews.MagicViewsNotInitializedException.java
com.ivankocijan.magicviews.MagicViews.java
com.ivankocijan.magicviews.enums.PreferenceType.java
com.ivankocijan.magicviews.preference.MagicCheckBoxPreference.java
com.ivankocijan.magicviews.preference.MagicEditTextPreference.java
com.ivankocijan.magicviews.preference.MagicPreferenceGroup.java
com.ivankocijan.magicviews.preference.MagicPreference.java
com.ivankocijan.magicviews.preference.MagicSwitchPreference.java
com.ivankocijan.magicviews.utils.FontUtils.java
com.ivankocijan.magicviews.views.MagicButton.java
com.ivankocijan.magicviews.views.MagicCheckBox.java
com.ivankocijan.magicviews.views.MagicCheckedTextView.java
com.ivankocijan.magicviews.views.MagicEditText.java
com.ivankocijan.magicviews.views.MagicTextView.java