From d9e3dab7d4ee9f2198ae239f71830bb74abe63cb Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Sun, 31 Mar 2024 22:38:07 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20activit=C3=A9=20param=C3=A8tres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/iutfbleau/sae/SettingsActivity.java | 25 +++++++++++++++++++ app/src/main/res/xml/preferences.xml | 23 +++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 app/src/main/java/fr/iutfbleau/sae/SettingsActivity.java create mode 100644 app/src/main/res/xml/preferences.xml diff --git a/app/src/main/java/fr/iutfbleau/sae/SettingsActivity.java b/app/src/main/java/fr/iutfbleau/sae/SettingsActivity.java new file mode 100644 index 0000000..c8c880f --- /dev/null +++ b/app/src/main/java/fr/iutfbleau/sae/SettingsActivity.java @@ -0,0 +1,25 @@ +package fr.iutfbleau.sae; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; +import android.preference.PreferenceActivity; + +/** + * {@code SettingsActivity} is the activity that displays the settings. + * + * @autor Alexeï Kadir, Lyanis Souidi, Hugo Dimitrijevic + * @version 1.0 + */ +public class SettingsActivity extends PreferenceActivity { + /** + * Creates the settings view. + * + * @param savedInstanceState The saved instance state. + */ + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + this.addPreferencesFromResource(R.xml.preferences); + } +} \ No newline at end of file diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml new file mode 100644 index 0000000..9d73598 --- /dev/null +++ b/app/src/main/res/xml/preferences.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + +