diff --git a/XMen b/XMen new file mode 160000 index 0000000000000000000000000000000000000000..2121fa41fe013b87f360493c861c80b4b987366f --- /dev/null +++ b/XMen @@ -0,0 +1 @@ +Subproject commit 2121fa41fe013b87f360493c861c80b4b987366f diff --git a/Xmen_tp5_2324/.gitignore b/Xmen_tp5_2324/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..aa724b77071afcbd9bb398053e05adaf7ac9405a --- /dev/null +++ b/Xmen_tp5_2324/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/Xmen_tp5_2324/.idea/.gitignore b/Xmen_tp5_2324/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..26d33521af10bcc7fd8cea344038eaaeb78d0ef5 --- /dev/null +++ b/Xmen_tp5_2324/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Xmen_tp5_2324/.idea/compiler.xml b/Xmen_tp5_2324/.idea/compiler.xml new file mode 100644 index 0000000000000000000000000000000000000000..b589d56e9f285d8cfdc6c270853a5d439021a278 --- /dev/null +++ b/Xmen_tp5_2324/.idea/compiler.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="CompilerConfiguration"> + <bytecodeTargetLevel target="17" /> + </component> +</project> \ No newline at end of file diff --git a/Xmen_tp5_2324/.idea/deploymentTargetSelector.xml b/Xmen_tp5_2324/.idea/deploymentTargetSelector.xml new file mode 100644 index 0000000000000000000000000000000000000000..b268ef36cd2de3a14ddddf25aa9f5d4e95731e18 --- /dev/null +++ b/Xmen_tp5_2324/.idea/deploymentTargetSelector.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="deploymentTargetSelector"> + <selectionStates> + <SelectionState runConfigName="app"> + <option name="selectionMode" value="DROPDOWN" /> + </SelectionState> + </selectionStates> + </component> +</project> \ No newline at end of file diff --git a/Xmen_tp5_2324/.idea/gradle.xml b/Xmen_tp5_2324/.idea/gradle.xml new file mode 100644 index 0000000000000000000000000000000000000000..55df8d769953855028cec636e8119021a19896e0 --- /dev/null +++ b/Xmen_tp5_2324/.idea/gradle.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="GradleMigrationSettings" migrationVersion="1" /> + <component name="GradleSettings"> + <option name="linkedExternalProjectsSettings"> + <GradleProjectSettings> + <option name="testRunner" value="CHOOSE_PER_TEST" /> + <option name="externalProjectPath" value="$PROJECT_DIR$" /> + <option name="gradleJvm" value="#JAVA_HOME" /> + <option name="modules"> + <set> + <option value="$PROJECT_DIR$" /> + <option value="$PROJECT_DIR$/app" /> + </set> + </option> + <option name="resolveExternalAnnotations" value="false" /> + </GradleProjectSettings> + </option> + </component> +</project> \ No newline at end of file diff --git a/Xmen_tp5_2324/.idea/misc.xml b/Xmen_tp5_2324/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..f1044879e31aa73a3e757a2f81a68e7c26bd222a --- /dev/null +++ b/Xmen_tp5_2324/.idea/misc.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ExternalStorageConfigurationManager" enabled="true" /> + <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/build/classes" /> + </component> + <component name="ProjectType"> + <option name="id" value="Android" /> + </component> +</project> \ No newline at end of file diff --git a/Xmen_tp5_2324/.idea/runConfigurations.xml b/Xmen_tp5_2324/.idea/runConfigurations.xml new file mode 100644 index 0000000000000000000000000000000000000000..16660f1d80a1f5cde389ecce783051eb8f68223d --- /dev/null +++ b/Xmen_tp5_2324/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="RunConfigurationProducerService"> + <option name="ignoredProducers"> + <set> + <option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" /> + <option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" /> + <option value="com.intellij.execution.junit.PatternConfigurationProducer" /> + <option value="com.intellij.execution.junit.TestInClassConfigurationProducer" /> + <option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" /> + <option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" /> + <option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" /> + <option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" /> + </set> + </option> + </component> +</project> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/.gitignore b/Xmen_tp5_2324/app/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..42afabfd2abebf31384ca7797186a27a4b7dbee8 --- /dev/null +++ b/Xmen_tp5_2324/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/Xmen_tp5_2324/app/build.gradle b/Xmen_tp5_2324/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..f4867a768915ec7efe96a24fb9826d4d1d8a4ed6 --- /dev/null +++ b/Xmen_tp5_2324/app/build.gradle @@ -0,0 +1,44 @@ +plugins { + id 'com.android.application' +} + +android { + namespace 'com.example.xmen_tp5_2324' + compileSdk 34 + + defaultConfig { + applicationId "com.example.xmen_tp5_2324" + minSdk 27 + targetSdk 33 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + buildFeatures{ + viewBinding true + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + buildToolsVersion '35.0.0' +} + +dependencies { + + implementation 'androidx.appcompat:appcompat:1.6.1' + implementation 'com.google.android.material:material:1.11.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation 'androidx.recyclerview:recyclerview:1.3.0' + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' +} \ No newline at end of file diff --git a/Xmen_tp5_2324/app/proguard-rules.pro b/Xmen_tp5_2324/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..481bb434814107eb79d7a30b676d344b0df2f8ce --- /dev/null +++ b/Xmen_tp5_2324/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/androidTest/java/com/example/xmen_tp5_2324/ExampleInstrumentedTest.java b/Xmen_tp5_2324/app/src/androidTest/java/com/example/xmen_tp5_2324/ExampleInstrumentedTest.java new file mode 100644 index 0000000000000000000000000000000000000000..c056ea3715aa536927f08ef4e1794d466e23d524 --- /dev/null +++ b/Xmen_tp5_2324/app/src/androidTest/java/com/example/xmen_tp5_2324/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.example.xmen_tp5_2324; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.example.xmen_tp5_2324", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/AndroidManifest.xml b/Xmen_tp5_2324/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..4efd13635f6476a51a7e972c2c67f47fc4e24c70 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/AndroidManifest.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools"> + + <application + android:name=".XMenApplication" + android:allowBackup="true" + android:dataExtractionRules="@xml/data_extraction_rules" + android:fullBackupContent="@xml/backup_rules" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:supportsRtl="true" + android:theme="@style/Theme.XMen" + tools:targetApi="31"> + <activity + android:name=".EditActivity" + android:exported="false" /> + <activity + android:name=".MainActivity" + android:exported="true"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/EditActivity.java b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/EditActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..79c461035bbb030797b0818c85940f548e3cff25 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/EditActivity.java @@ -0,0 +1,55 @@ +package com.example.xmen_tp5_2324; + +import android.content.Intent; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import androidx.appcompat.app.AppCompatActivity; +import java.util.List; +import com.example.xmen_tp5_2324.databinding.ActivityEditBinding; + +public class EditActivity extends AppCompatActivity { + private List<XMen> liste; + //private EditXmenBinding ui; + private ActivityEditBinding ui; + @Override + protected void onCreate(Bundle savedInstanceState) { + // obtenir la liste + super.onCreate(savedInstanceState); + XMenApplication application = (XMenApplication) getApplication(); + liste = application.getListe(); + ui = ActivityEditBinding.inflate(getLayoutInflater()); + setContentView(ui.getRoot()); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.edit_menu, menu); + return super.onCreateOptionsMenu(menu); + } + + /** + * créer une nouvelle instance de XMen et la remplir avec les EditText de l'interface + */ + + + public void onAccept(MenuItem item) { + XMen xmen = new XMen(); + xmen.setNom(ui.editNom.getText().toString()); + xmen.setAlias(ui.editAlias.getText().toString()); + xmen.setPouvoirs(ui.editPouvoirs.getText().toString()); + xmen.setDescription(ui.editDesc.getText().toString()); + Intent intent = getIntent(); + int position = intent.getIntExtra("position",-1); + if (position < 0) + liste.add(xmen); + else { + liste.remove(position); + liste.add(position, xmen); + } + setResult(RESULT_OK); + finish(); + } +} \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/MainActivity.java b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..500ab19365ad8e2defa28606a190c1d2b4b01bd1 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/MainActivity.java @@ -0,0 +1,141 @@ +package com.example.xmen_tp5_2324; + +import static com.example.xmen_tp5_2324.databinding.ActivityMainBinding.inflate; +import androidx.activity.result.ActivityResult; +import androidx.activity.result.ActivityResultLauncher; +import androidx.activity.result.contract.ActivityResultContracts; +import androidx.annotation.NonNull; +import androidx.appcompat.app.AppCompatActivity; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import android.annotation.SuppressLint; +import android.content.Intent; +import android.os.Bundle; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.Menu; + +import com.example.xmen_tp5_2324.databinding.ActivityMainBinding; + +import java.util.*; + +public class MainActivity extends AppCompatActivity implements XMenAdapter.OnItemClickListener { + private ActivityMainBinding ui; + private ActivityResultLauncher<Intent> editLauncher; + private List<XMen> liste; // variable membre + private XMenAdapter adapter; // variable membre + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + //setContentView(R.layout.activity_main); + ui = ActivityMainBinding.inflate(getLayoutInflater()); + setContentView(ui.getRoot()); + + // obtenir la liste + XMenApplication application = (XMenApplication) getApplication(); + liste = application.getListe(); + + // créer l'adaptateur + adapter = new XMenAdapter(liste); + // on fournit l'activité comme écouteur de clics à l'adaptateur (qui le fournira lui-même aux view holders) + adapter.setOnItemClickListener(this); + + // fournir l'adaptateur au recycler + ui.recycler.setAdapter(adapter); + ui.recycler.setHasFixedSize(true); + + RecyclerView.LayoutManager lm = new LinearLayoutManager(this); + ui.recycler.setLayoutManager(lm); + + // création du launcher d'activité d'édition de personnage + editLauncher = registerForActivityResult( + new ActivityResultContracts.StartActivityForResult(), + this::onEditActivityFinished); + + } + + /** + * Cette méthode est appelée quand on revient dans cette activité + * après l'avoir lancée par editLauncher + */ + // @SuppressLint("NotifyDataSetChanged") + @SuppressLint("NonConstantResourceId") + private void onEditActivityFinished(ActivityResult result) { + if (result.getResultCode() == RESULT_OK) { + adapter.notifyDataSetChanged(); + } + } + + @Override + public void onItemClick(int position) { + // récupérer le X-Men concerné + XMen xmen = liste.get(position); + // changer l'image du X-Men + xmen.setIdImage(R.drawable.undef); + // signaler à l'adaptateur que l'élément a changé + adapter.notifyItemChanged(position); + } + @Override + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.main_menu, menu); + return super.onCreateOptionsMenu(menu); + } + + @SuppressLint("NonConstantResourceId") + @Override + public boolean onOptionsItemSelected(@NonNull MenuItem item) { + XMenApplication application = (XMenApplication) getApplication(); + switch (item.getItemId()) { + case R.id.reinit: + application.initListe(); + adapter.notifyDataSetChanged(); + return true; + case R.id.create: + // TODO voir exercice suivant + onEdit(-1); + return true; + } + return super.onOptionsItemSelected(item); + } + + + + /** + * lancer l'édition sur un XMen indiqué par position, -1 si création + * @param position: index dans la liste, mettre -1 si on veut créer un X-Men + */ + private void onEdit(int position) { + // créer un Intent pour lancer EditActivity + Intent intent = new Intent(this,EditActivity.class); + intent.putExtra("position",position); + // démarrer l'activité avec attente du résultat + editLauncher.launch(intent); + } + private void onDelete(int position) { + // créer un Intent pour lancer EditActivity + liste.remove(position); + adapter.notifyDataSetChanged(); + } + @Override + public boolean onContextItemSelected(MenuItem item){ + // récupérer la position de l'élément concerné par le menu (dans order) + int position = item.getOrder(); + + // selon le bouton de menu + switch (item.getItemId()) { + case XMenViewHolder.MENU_EDIT: + onEdit(position); + return true; + case XMenViewHolder.MENU_DELETE: + // TODO décommenter quand cette méthode sera ajoutée, voir la fin du sujet + onDelete(position); + return true; + } + return super.onContextItemSelected(item); + } + + +} \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMen.java b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMen.java new file mode 100644 index 0000000000000000000000000000000000000000..69e326166e371695b015583e41da117d240e8933 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMen.java @@ -0,0 +1,70 @@ +package com.example.xmen_tp5_2324; + +import androidx.annotation.DrawableRes; + +public class XMen { + // variables représentant les informations + private String nom; + private String alias; + private String description; + private String pouvoirs; + // TODO ajouter les champs manquants : alias,... + + private @DrawableRes int idImage; + + // constructeur sans paramètre + public XMen(){ + nom = "inconnu"; + this.idImage = R.drawable.undef; + } + + public XMen(String nom, String alias, String description, String pouvoirs, @DrawableRes int idImage) { + this.nom = nom; + this.alias = alias.equals("") ? "" : "(" + alias + ")"; + this.description = description; + this.pouvoirs = pouvoirs; + this.idImage = idImage; + } + + public String getNom() { + return nom; + } + + public void setNom(String nom) { + this.nom = nom; + } + + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getPouvoirs() { + return pouvoirs; + } + + public void setPouvoirs(String pouvoirs) { + this.pouvoirs = pouvoirs; + } + + public @DrawableRes int getIdImage() { + return idImage; + } + + public void setIdImage(@DrawableRes int idImage) { + this.idImage = idImage; + } + + +} diff --git a/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenAdapter.java b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenAdapter.java new file mode 100644 index 0000000000000000000000000000000000000000..d40a7bccd8dbcd74f7624c9ad64ebd2652713177 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenAdapter.java @@ -0,0 +1,56 @@ +package com.example.xmen_tp5_2324; + +import android.util.Log; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import com.example.xmen_tp5_2324.databinding.XMenBinding; + +import java.util.List; + +public class XMenAdapter extends RecyclerView.Adapter<XMenViewHolder>{ + // variable membre du type de l'interface + private XMenAdapter.OnItemClickListener onItemClickListener; + private List<XMen> liste; + private final String TAG = "XMEN"; + public XMenAdapter(List liste){ + this.liste = liste; + } + @NonNull + @Override + public XMenViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + Log.i(TAG,"onCreateViewHolder"); + + XMenBinding ui = XMenBinding.inflate( + LayoutInflater.from(parent.getContext()), + parent, + false); + return new XMenViewHolder(ui); + } + + @Override + public void onBindViewHolder(@NonNull XMenViewHolder holder, int position) { + Log.i(TAG,"onBindViewHolder: " + position); + holder.setXMen(liste.get(position)); + holder.setOnItemClickListener(onItemClickListener); // écouteur transmis au viewholder + } + + @Override + public int getItemCount() { + return this.liste.size(); + } + + // interface publique d'écouteur + public interface OnItemClickListener { + void onItemClick(int position); + } + + // setter + public void setOnItemClickListener(OnItemClickListener onItemClickListener) { + this.onItemClickListener = onItemClickListener; + } +} diff --git a/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenApplication.java b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..138a0cd8761f1f31880f6303daecea548b9cd1f6 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenApplication.java @@ -0,0 +1,47 @@ +package com.example.xmen_tp5_2324; + +import android.app.Application; +import android.content.res.Resources; +import android.content.res.TypedArray; + +import java.util.*; + +public class XMenApplication extends Application { + + // variable globale de l'application : la liste des XMen + private final List<XMen> liste = new ArrayList<XMen>(); + + // initialisation du contexte + @Override public void onCreate() { + super.onCreate(); + initListe(); + } + + public List<XMen> getListe() { + return liste; + } + + public void initListe(){ + // /!\ il faut préalablement vider la liste + liste.clear(); + + // accès aux ressources + Resources res = getResources(); + final String[] noms = res.getStringArray(R.array.noms); + final String[] alias = res.getStringArray(R.array.alias); + final String[] descriptions = res.getStringArray(R.array.descriptions); + final String[] pouvoirs = res.getStringArray(R.array.pouvoirs); + TypedArray images = res.obtainTypedArray(R.array.idimages); + + // recopier les données dans la liste + for (int i=0; i<noms.length; ++i) { + XMen xm = new XMen(noms[i], alias[i], descriptions[i], pouvoirs[i], images.getResourceId(i, 0)); + liste.add(xm); + } + // libérer certaines ressources explicitement + images.recycle(); + } + + + +} diff --git a/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenViewHolder.java b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenViewHolder.java new file mode 100644 index 0000000000000000000000000000000000000000..be6a1760496cf7a7b5fd9d02964245bd531d3169 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/java/com/example/xmen_tp5_2324/XMenViewHolder.java @@ -0,0 +1,52 @@ +package com.example.xmen_tp5_2324; +import android.view.View; +import android.view.ContextMenu; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import com.example.xmen_tp5_2324.databinding.XMenBinding; + +public class XMenViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { + public static final int MENU_EDIT = 1; + public static final int MENU_DELETE = 2; + // même variable membre que dans l'adaptateur + private XMenAdapter.OnItemClickListener onItemClickListener; + private final XMenBinding ui; + + public XMenViewHolder(@NonNull XMenBinding ui) + { + super(ui.getRoot()); + this.ui = ui; + // on associe cette classe comme écouteur de clic de l'item entier + itemView.setOnClickListener(this); + itemView.setOnCreateContextMenuListener(this::onCreateContextMenu); + } + public void onCreateContextMenu(ContextMenu menu, View v, + ContextMenu.ContextMenuInfo menuInfo) { + // position du X-Men concerné + int position = getAdapterPosition(); + // titre du menu = nom du X-Men + menu.setHeaderTitle(ui.nom.getText()); + // utiliser order (3e param) pour stocker la position du X-Men + menu.add(0, MENU_EDIT, position, "Edit"); + menu.add(0, MENU_DELETE, position, "Delete"); + } + + public void setXMen(XMen xmen) { + ui.nom.setText(xmen.getNom()); + ui.alias.setText(xmen.getAlias()); + ui.pouvoirs.setText(xmen.getPouvoirs()); + ui.description.setText(xmen.getDescription()); + ui.image.setImageResource(xmen.getIdImage()); + } + public void onClick(View v) { + if (onItemClickListener != null) // test par précaution + onItemClickListener.onItemClick(getAbsoluteAdapterPosition()); + } + + // même setter que dans l'adaptateur + public void setOnItemClickListener(XMenAdapter.OnItemClickListener onItemClickListener) { + this.onItemClickListener = onItemClickListener; + } +} diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_accept.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_accept.png new file mode 100644 index 0000000000000000000000000000000000000000..d93146d9902e3d7631f4d215abcdf50445264481 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_accept.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_new.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_new.png new file mode 100644 index 0000000000000000000000000000000000000000..d866d6160db2dade92436e92401864bf79ab37f9 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_new.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..c5fc3eaab930b8b327d03b26ec79761032db9911 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img1.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img1.png new file mode 100644 index 0000000000000000000000000000000000000000..00c80cd429a091f2347fc175e5bd9283d9ab25ce Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img1.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img10.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img10.png new file mode 100644 index 0000000000000000000000000000000000000000..efd98d4dc7a327d70128e2cc3740567a6d74d5f6 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img10.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img11.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img11.png new file mode 100644 index 0000000000000000000000000000000000000000..ac416ca251202e4f07112ccfe320b6438cf0496d Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img11.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img12.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img12.png new file mode 100644 index 0000000000000000000000000000000000000000..0b530d93fb421c0a7968f03f42af71b8321647b1 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img12.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img13.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img13.png new file mode 100644 index 0000000000000000000000000000000000000000..3e2c37938fdedd985c1b379cae470edbd301db2f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img13.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img14.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img14.png new file mode 100644 index 0000000000000000000000000000000000000000..2ee3ed142df4eb1bfb29f625127f9e8aa0434173 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img14.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img15.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img15.png new file mode 100644 index 0000000000000000000000000000000000000000..42df3ba09263c5710ab251af6f199694dd9b99a4 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img15.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img16.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img16.png new file mode 100644 index 0000000000000000000000000000000000000000..b1d6275fb1646a73c4b92e7baac9ad08b427a0d5 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img16.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img17.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img17.png new file mode 100644 index 0000000000000000000000000000000000000000..0b324880180fd0dcb4e684686011ee08d98509fd Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img17.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img18.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img18.png new file mode 100644 index 0000000000000000000000000000000000000000..843bbda0802c39688e576a45c80863acf1309b53 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img18.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img19.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img19.png new file mode 100644 index 0000000000000000000000000000000000000000..5fcf91714ec06dd8fd93490e07852ac0349907c0 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img19.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img2.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..8f425270c7001bb3e3a34a481e6a7a8f8323d61d Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img2.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img20.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img20.png new file mode 100644 index 0000000000000000000000000000000000000000..464a9f8f4853f814712ea8da40687ac29fad858a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img20.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img3.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img3.png new file mode 100644 index 0000000000000000000000000000000000000000..a5502aac8b1105eaf3e8c3769cb50702b41c9d7f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img3.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img4.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img4.png new file mode 100644 index 0000000000000000000000000000000000000000..4a6fac4de9b1c67788227e36961a7257ef67fa0e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img4.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img5.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img5.png new file mode 100644 index 0000000000000000000000000000000000000000..e6a0ffb58b9db7fa44086dd61979db6d840cce8f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img5.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img6.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img6.png new file mode 100644 index 0000000000000000000000000000000000000000..7964179d8f9f70aac8cb25b3ab5c56ecd610d2b4 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img6.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img7.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img7.png new file mode 100644 index 0000000000000000000000000000000000000000..c41224a00d16eb6ed5f9e3bd61453df1d60d5b26 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img7.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img8.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img8.png new file mode 100644 index 0000000000000000000000000000000000000000..1cf9b452b20d5fc3499aee9a8a835706dc65821c Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img8.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img9.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img9.png new file mode 100644 index 0000000000000000000000000000000000000000..b1007728a3fcd157a2e23cb91f37a278c8d02605 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/img9.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/undef.png b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/undef.png new file mode 100644 index 0000000000000000000000000000000000000000..f4dd5f26ccf48a470146665f94c566e514723a7a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-hdpi/undef.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img1.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img1.png new file mode 100644 index 0000000000000000000000000000000000000000..0db4e715e61ae32ae3312b409ca299cf032c1a9c Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img1.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img10.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img10.png new file mode 100644 index 0000000000000000000000000000000000000000..b8d943718bb94dd17ce2b7b438a3c9c4e345fa37 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img10.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img11.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img11.png new file mode 100644 index 0000000000000000000000000000000000000000..6bc7d60b76442a391a12b198af81d2278ab81c90 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img11.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img12.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img12.png new file mode 100644 index 0000000000000000000000000000000000000000..a1ff0ae87d14f339a31264d8856935723ebc8794 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img12.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img13.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img13.png new file mode 100644 index 0000000000000000000000000000000000000000..74208988df2fcf8d60a8b8bb0addadb60eaafafd Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img13.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img14.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img14.png new file mode 100644 index 0000000000000000000000000000000000000000..0e481fe10e8fc9c36a57acce1e95eabe262c837e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img14.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img15.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img15.png new file mode 100644 index 0000000000000000000000000000000000000000..1310851423ca8c8858b55a64592e1990639b5e20 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img15.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img16.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img16.png new file mode 100644 index 0000000000000000000000000000000000000000..b5cd68b681484b7a911e010555c6e5a0d2798fac Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img16.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img17.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img17.png new file mode 100644 index 0000000000000000000000000000000000000000..0552ec36b95bb531aa60c0be6444a2ab17018a3d Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img17.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img18.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img18.png new file mode 100644 index 0000000000000000000000000000000000000000..78d63c92dc852328d0b5974717360bdfec8bfc48 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img18.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img19.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img19.png new file mode 100644 index 0000000000000000000000000000000000000000..e90c43cbf9134de93df0dc308f7740fd349e5eef Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img19.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img2.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..ecd472d7e8a00c478bdcaf16c3a4a5611f26f971 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img2.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img20.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img20.png new file mode 100644 index 0000000000000000000000000000000000000000..7be583501dc587fb7aab91b57de868a1f8b19ea4 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img20.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img3.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img3.png new file mode 100644 index 0000000000000000000000000000000000000000..0249b90dc1a471efe1aeacff46e2c8f39fbaf27c Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img3.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img4.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img4.png new file mode 100644 index 0000000000000000000000000000000000000000..86bbdf7444e15fcc101fcf6fd244525bbbdc101c Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img4.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img5.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img5.png new file mode 100644 index 0000000000000000000000000000000000000000..0371f1072f5bd415cd280a4263ae9e156b167ab1 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img5.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img6.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img6.png new file mode 100644 index 0000000000000000000000000000000000000000..72482844021a1003c11c5312f042d14673b94cc5 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img6.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img7.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img7.png new file mode 100644 index 0000000000000000000000000000000000000000..b86551c053bc34523d9f8e02334f6756d8a3a6f2 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img7.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img8.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img8.png new file mode 100644 index 0000000000000000000000000000000000000000..333519321efd6fc84bc00e8fba05be1fbb193f65 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img8.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img9.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img9.png new file mode 100644 index 0000000000000000000000000000000000000000..6d2bd47b66ed2ddae465f1364c2d92ef286699b3 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/img9.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/undef.png b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/undef.png new file mode 100644 index 0000000000000000000000000000000000000000..6b6230ad12d3a9228ba5a05867064c3a429024ac Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-ldpi/undef.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_accept.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_accept.png new file mode 100644 index 0000000000000000000000000000000000000000..98df0c707b0ab46e2677898c46519549d35bf13e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_accept.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_new.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_new.png new file mode 100644 index 0000000000000000000000000000000000000000..f17e7980ee9aee545cb23bf93e9b21613278514c Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_new.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..16704c6488f1f0ea60acd6d7bef18852fdbfe690 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img1.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img1.png new file mode 100644 index 0000000000000000000000000000000000000000..c93788a74afb510be6cb9fd0dfab7b572060c342 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img1.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img10.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img10.png new file mode 100644 index 0000000000000000000000000000000000000000..7d30692518e1543a4e8ddd084082a4dfd729c773 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img10.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img11.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img11.png new file mode 100644 index 0000000000000000000000000000000000000000..71c33f25b4356804b9a5978d2d9c536d33309ae5 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img11.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img12.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img12.png new file mode 100644 index 0000000000000000000000000000000000000000..05abbd78888818e7fc3416c3e675732674352db0 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img12.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img13.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img13.png new file mode 100644 index 0000000000000000000000000000000000000000..2361b41c1d5be898519f1b77c7a38485bef57999 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img13.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img14.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img14.png new file mode 100644 index 0000000000000000000000000000000000000000..97fa3e9d57d701a0d1123b87bfc9591c9ecaff1f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img14.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img15.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img15.png new file mode 100644 index 0000000000000000000000000000000000000000..04b5310722bf95c368f744dc160d16a2fe02d2ce Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img15.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img16.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img16.png new file mode 100644 index 0000000000000000000000000000000000000000..b00c31bb319f9d46eb4471769297c53a415c0255 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img16.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img17.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img17.png new file mode 100644 index 0000000000000000000000000000000000000000..c4d087c75fe94ce0163a2a0f524e747c2cd13344 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img17.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img18.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img18.png new file mode 100644 index 0000000000000000000000000000000000000000..9bf31f0a1f31165ee41789dc4169f3bb2ce238ff Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img18.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img19.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img19.png new file mode 100644 index 0000000000000000000000000000000000000000..b5e881bec3b7635ac1f6df60b379b8953d3e285f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img19.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img2.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..649312eeb6133a584d187d272f2b89bb8b3425b7 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img2.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img20.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img20.png new file mode 100644 index 0000000000000000000000000000000000000000..13aad052badf6dce38476fadcc8ed65600619b02 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img20.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img3.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img3.png new file mode 100644 index 0000000000000000000000000000000000000000..02bf1c935e51233741abaac6cc8890319568ee40 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img3.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img4.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img4.png new file mode 100644 index 0000000000000000000000000000000000000000..109b3095daf8ed2f4e0b20a79b423a8810e76e5a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img4.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img5.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img5.png new file mode 100644 index 0000000000000000000000000000000000000000..62139e291e2c8ac0fcd056aaa248bca5a23b4982 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img5.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img6.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img6.png new file mode 100644 index 0000000000000000000000000000000000000000..27333853d160c2f130e2d4b37b799ce54276bfdf Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img6.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img7.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img7.png new file mode 100644 index 0000000000000000000000000000000000000000..8d526233b649f833cddf843ceabdb131e2f863fd Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img7.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img8.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img8.png new file mode 100644 index 0000000000000000000000000000000000000000..ca6a28803ef9773bdb608e9a71e85849d6be3a43 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img8.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img9.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img9.png new file mode 100644 index 0000000000000000000000000000000000000000..e15f1d20fa4afc43a8881c4197d65d9797da6bfc Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/img9.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/undef.png b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/undef.png new file mode 100644 index 0000000000000000000000000000000000000000..9281faa62b5a2d0ac8d6138f127420dc9932205e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-mdpi/undef.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Xmen_tp5_2324/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b068d11462a4b96669193de13a711a3a36220a0 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="85.84757" + android:endY="92.4963" + android:startX="42.9492" + android:startY="49.59793" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_accept.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_accept.png new file mode 100644 index 0000000000000000000000000000000000000000..6c235cf92ed950a5a9ea2e825e9937e2cc711a60 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_accept.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_new.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_new.png new file mode 100644 index 0000000000000000000000000000000000000000..dde2141f214815395f40f35b479d4443135f6898 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_new.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..1522bbb8bc28a2ad91b6c6d25f5e240d54954f5f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img1.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img1.png new file mode 100644 index 0000000000000000000000000000000000000000..c673769fa3ec765f9b811bcbb0821669b65e9652 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img1.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img10.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img10.png new file mode 100644 index 0000000000000000000000000000000000000000..3bfa9f9dec0505232969f5ae0f24b2a095251bc6 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img10.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img11.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img11.png new file mode 100644 index 0000000000000000000000000000000000000000..6ad5451ae627e39b669386daa1827e3390bc2289 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img11.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img12.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img12.png new file mode 100644 index 0000000000000000000000000000000000000000..6383fc1eb33471a26dc1e1cda7754ebbcc0f351f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img12.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img13.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img13.png new file mode 100644 index 0000000000000000000000000000000000000000..a1ad17ea1b42198438cb16581bcbaeec610daef2 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img13.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img14.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img14.png new file mode 100644 index 0000000000000000000000000000000000000000..e0b54a7c71d04b93d86f6e5c506278fdd31d6116 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img14.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img15.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img15.png new file mode 100644 index 0000000000000000000000000000000000000000..86aa642c2670bbb51aeb96ae6aa1886ca98c4e9a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img15.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img16.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img16.png new file mode 100644 index 0000000000000000000000000000000000000000..778f7dbd60f8bf0fd017fa9c86331ac3db9d33af Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img16.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img17.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img17.png new file mode 100644 index 0000000000000000000000000000000000000000..ddb48b896e7b13d7b198a86b883c46739f0be0ef Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img17.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img18.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img18.png new file mode 100644 index 0000000000000000000000000000000000000000..06de18970a5b393a3a73e5e71095be38db472a8e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img18.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img19.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img19.png new file mode 100644 index 0000000000000000000000000000000000000000..6d545b7229efea63ccd3798efe614bd6f62c7b52 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img19.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img2.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..e7ca815ab870776e9ac988d77f4383c7a936cba6 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img2.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img20.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img20.png new file mode 100644 index 0000000000000000000000000000000000000000..97202e158726f116d0d9841177e42ef02af9429f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img20.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img3.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img3.png new file mode 100644 index 0000000000000000000000000000000000000000..d1c74202f1f057bce395e01f74e62b8402440794 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img3.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img4.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img4.png new file mode 100644 index 0000000000000000000000000000000000000000..b12a9953fda3c473b3f0f6e1ddea9112ecadbd2d Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img4.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img5.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img5.png new file mode 100644 index 0000000000000000000000000000000000000000..08b138214b1916e6c1e1aadd788ea31d258109fc Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img5.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img6.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img6.png new file mode 100644 index 0000000000000000000000000000000000000000..be6472ee8345e2003d4b4eb6ddd389055a1db054 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img6.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img7.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img7.png new file mode 100644 index 0000000000000000000000000000000000000000..1151bf1f3f2ee5ac02290857163c6de72190a7b0 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img7.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img8.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img8.png new file mode 100644 index 0000000000000000000000000000000000000000..d564901eb93db6c78dd637d4210a5e96e2704952 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img8.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img9.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img9.png new file mode 100644 index 0000000000000000000000000000000000000000..b68f914c19510bd60674f2178fb3f73f42de5b0e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/img9.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/undef.png b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/undef.png new file mode 100644 index 0000000000000000000000000000000000000000..00bc292e1265b5b7ef3741dbae488dac9bbfbc70 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xhdpi/undef.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_accept.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_accept.png new file mode 100644 index 0000000000000000000000000000000000000000..6fda89ec7d8d2ef1caa50a1191c1b2f9a0e65e2d Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_accept.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_new.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_new.png new file mode 100644 index 0000000000000000000000000000000000000000..c42c2bfb58ae772ea54d1f1b7a74a94e2c8a2b2f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_new.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..9825a89aa2d0c72b384b8699a0cb1e997b4b2f36 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img1.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img1.png new file mode 100644 index 0000000000000000000000000000000000000000..5a47a18289f418148f11da5659e53dcfa5a0562f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img1.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img10.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img10.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0e28871f73e0dd8f76d4bdf675d26445780c3f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img10.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img11.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img11.png new file mode 100644 index 0000000000000000000000000000000000000000..8f8c86983736ec3122a8e87907778e09da7f0f61 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img11.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img12.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img12.png new file mode 100644 index 0000000000000000000000000000000000000000..76cb2ab90737da7bdec7a3db47c2d1b2fa40228b Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img12.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img13.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img13.png new file mode 100644 index 0000000000000000000000000000000000000000..0387cf9b68fa0b4e7623ecb150f31dfd8b51c847 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img13.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img14.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img14.png new file mode 100644 index 0000000000000000000000000000000000000000..94bda14c1ea22d24c1297de8c43fe10ead9b3028 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img14.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img15.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img15.png new file mode 100644 index 0000000000000000000000000000000000000000..5fdd3ba3af1bdfb919a03a53dffac3639515ecaf Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img15.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img16.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img16.png new file mode 100644 index 0000000000000000000000000000000000000000..ae939b4978c554cc6520f9e9bb256f4a2887cb96 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img16.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img17.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img17.png new file mode 100644 index 0000000000000000000000000000000000000000..5f042d32ccdcb0eeb725f3f2259f7c29f867d75a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img17.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img18.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img18.png new file mode 100644 index 0000000000000000000000000000000000000000..827aaf74cbf6d764394b772cc099f2252c285d62 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img18.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img19.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img19.png new file mode 100644 index 0000000000000000000000000000000000000000..faf64db2cf8a119e8c4664deaa665d86422b6925 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img19.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img2.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..04323b87a18ed8b861172fd015f2b07b64456c02 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img2.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img20.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img20.png new file mode 100644 index 0000000000000000000000000000000000000000..ccd84b7bb5291307ceb3e67a9cbe21ae65abdbbe Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img20.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img3.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img3.png new file mode 100644 index 0000000000000000000000000000000000000000..71c3e48e16c15128cf42e83bba6c87c13fef6986 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img3.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img4.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img4.png new file mode 100644 index 0000000000000000000000000000000000000000..8b81954cab8205c404d7e96bc002e31676c01078 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img4.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img5.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img5.png new file mode 100644 index 0000000000000000000000000000000000000000..aed64430f0104c421ca956a95df13bdf35af7b1e Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img5.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img6.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img6.png new file mode 100644 index 0000000000000000000000000000000000000000..e19fb621d0b80545e95a55a86cf83748bce752eb Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img6.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img7.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img7.png new file mode 100644 index 0000000000000000000000000000000000000000..a87e533ab931df05e199ce22f942d73b8afce859 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img7.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img8.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img8.png new file mode 100644 index 0000000000000000000000000000000000000000..168520dd23f0ea2df008c83dcbff1e82a6c77429 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img8.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img9.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img9.png new file mode 100644 index 0000000000000000000000000000000000000000..2e117ce225185a7fb70dc84c8265c403ce201cbb Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/img9.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/undef.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/undef.png new file mode 100644 index 0000000000000000000000000000000000000000..0bc87c7b11659b5810b08d6a0dcd3768305c0489 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxhdpi/undef.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img1.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img1.png new file mode 100644 index 0000000000000000000000000000000000000000..fd8e9ad5f54b084fcab23290d4e4da88c70a37d8 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img1.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img10.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img10.png new file mode 100644 index 0000000000000000000000000000000000000000..639b7e4f8942c12227a4c43ab30ad319cfdd56a9 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img10.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img11.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img11.png new file mode 100644 index 0000000000000000000000000000000000000000..ee154953d31b0aca5af9280384cb161bc23e723b Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img11.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img12.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img12.png new file mode 100644 index 0000000000000000000000000000000000000000..50f0e4c1b9d2c8ef1e18fe43a08140c2325acd9a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img12.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img13.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img13.png new file mode 100644 index 0000000000000000000000000000000000000000..65eb8a28191d7e5938a409b74121499d7ad1a1a7 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img13.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img14.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img14.png new file mode 100644 index 0000000000000000000000000000000000000000..ec6892006d0b58b50ca14803e8082ecc2f9f1c09 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img14.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img15.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img15.png new file mode 100644 index 0000000000000000000000000000000000000000..8ddff30474c1a1748a5784f573ab82d3b71ee469 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img15.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img16.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img16.png new file mode 100644 index 0000000000000000000000000000000000000000..35aff75ea1998ca6dd54287a6b14c937ec858e92 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img16.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img17.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img17.png new file mode 100644 index 0000000000000000000000000000000000000000..73840471626310079b16c099515cf579448b4516 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img17.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img18.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img18.png new file mode 100644 index 0000000000000000000000000000000000000000..5f64166eb8646635e25b8bfb3ebd61c47ec96005 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img18.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img19.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img19.png new file mode 100644 index 0000000000000000000000000000000000000000..7ac8ca717a2c0b0289c354b7ee4a4129da8438d7 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img19.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img2.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img2.png new file mode 100644 index 0000000000000000000000000000000000000000..027edf18cea1999f49550786b53472ee586cabbf Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img2.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img20.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img20.png new file mode 100644 index 0000000000000000000000000000000000000000..43dcf313328ce2459b97af26cd68eda8b65c0775 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img20.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img3.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img3.png new file mode 100644 index 0000000000000000000000000000000000000000..871e853912502f7b03b2fc34114e940984fb1de6 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img3.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img4.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img4.png new file mode 100644 index 0000000000000000000000000000000000000000..a94246000c41ed4f3109b6ca2a405a9680c62b2f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img4.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img5.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img5.png new file mode 100644 index 0000000000000000000000000000000000000000..0abfc32f010a6c1d4b259643326ea6f9250dfe10 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img5.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img6.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img6.png new file mode 100644 index 0000000000000000000000000000000000000000..820d3ba77ef90eec7b1bd00f5aeaf02d06e31361 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img6.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img7.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img7.png new file mode 100644 index 0000000000000000000000000000000000000000..8e2ff8f104b3d16c15a9b393027c1d7ee1a88762 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img7.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img8.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img8.png new file mode 100644 index 0000000000000000000000000000000000000000..acd3c6fc422925c2986108df9577d81a6091e467 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img8.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img9.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img9.png new file mode 100644 index 0000000000000000000000000000000000000000..ce37d2de78ca0abf6f19e806d4a9f4c446420b2a Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/img9.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/undef.png b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/undef.png new file mode 100644 index 0000000000000000000000000000000000000000..4dd9a511f9dbd49ee0735c5f2965f1b71b6157d1 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable-xxxhdpi/undef.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable/drawable-hdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-hdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..c5fc3eaab930b8b327d03b26ec79761032db9911 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-hdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable/drawable-mdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-mdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..16704c6488f1f0ea60acd6d7bef18852fdbfe690 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-mdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable/drawable-xhdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-xhdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..1522bbb8bc28a2ad91b6c6d25f5e240d54954f5f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-xhdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable/drawable-xxhdpi/ic_action_select_all.png b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-xxhdpi/ic_action_select_all.png new file mode 100644 index 0000000000000000000000000000000000000000..9825a89aa2d0c72b384b8699a0cb1e997b4b2f36 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/drawable/drawable-xxhdpi/ic_action_select_all.png differ diff --git a/Xmen_tp5_2324/app/src/main/res/drawable/ic_launcher_background.xml b/Xmen_tp5_2324/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..07d5da9cbf141911847041df5d7b87f0dd5ef9d4 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#3DDC84" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> diff --git a/Xmen_tp5_2324/app/src/main/res/layout/activity_edit.xml b/Xmen_tp5_2324/app/src/main/res/layout/activity_edit.xml new file mode 100644 index 0000000000000000000000000000000000000000..2c028cd51d145f482f26fcb8c9d281b0ce24c8cd --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/layout/activity_edit.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingLeft="40dp" + android:orientation="vertical" android:id="@+id/linearlayout" > + + <EditText + android:id="@+id/editNom" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="24dp" + android:ems="10" + android:text="Enter Nom" + android:selectAllOnFocus="true" /> + + <EditText + android:id="@+id/editAlias" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="19dp" + android:ems="10" + android:text="Enter Alias" /> + + <EditText + android:id="@+id/editPouvoirs" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:ems="10" + android:text="Enter Pouvoirs"/> + + <EditText + android:id="@+id/editDesc" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="18dp" + android:ems="10" + android:text="Enter Desc" /> + +</LinearLayout> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/layout/activity_main.xml b/Xmen_tp5_2324/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000000000000000000000000000000000..b811f43fea488556e68c594bb80813bbb0d71c3d --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.recyclerview.widget.RecyclerView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/recycler" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".MainActivity" /> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/layout/x_men.xml b/Xmen_tp5_2324/app/src/main/res/layout/x_men.xml new file mode 100644 index 0000000000000000000000000000000000000000..d085f38f67e33ca2f3538e80e2c827892c7edc3f --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/layout/x_men.xml @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <androidx.cardview.widget.CardView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_marginTop="15dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="5dp" + app:cardBackgroundColor="@android:color/system_accent1_700" + app:cardCornerRadius="10dp" + app:cardElevation="8dp" + app:contentPadding="5dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/description" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:layout_marginTop="8dp" + android:ellipsize="end" + android:maxLines="2" + android:text="TextView" + android:textColor="@color/tanAccent" + app:layout_constraintStart_toEndOf="@+id/image" + app:layout_constraintTop_toBottomOf="@+id/pouvoirs" /> + + <TextView + android:id="@+id/alias" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:text="TextView" + android:textColor="@color/tanAccent" + android:textSize="20sp" + app:layout_constraintStart_toEndOf="@+id/nom" + app:layout_constraintTop_toTopOf="parent" /> + + <TextView + android:id="@+id/nom" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:text="TextView" + android:textColor="@color/tanAccent" + android:textSize="20sp" + android:textStyle="bold" + app:layout_constraintStart_toEndOf="@+id/image" + app:layout_constraintTop_toTopOf="parent" + app:layout_goneMarginStart="15dp" /> + + <ImageView + android:id="@+id/image" + android:layout_width="80dp" + android:layout_height="80dp" + android:layout_marginStart="5dp" + android:cropToPadding="false" + android:padding="5dp" + android:scaleType="centerCrop" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.5" + app:srcCompat="@drawable/img1" /> + + <TextView + android:id="@+id/pouvoirs" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="TextView" + android:textColor="@color/tanAccent" + android:textStyle="italic" + app:layout_constraintStart_toStartOf="@+id/nom" + app:layout_constraintTop_toBottomOf="@+id/nom" /> + </androidx.constraintlayout.widget.ConstraintLayout> + </androidx.cardview.widget.CardView> + +</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/menu/edit_menu.xml b/Xmen_tp5_2324/app/src/main/res/menu/edit_menu.xml new file mode 100644 index 0000000000000000000000000000000000000000..8dfc70e23efdb547bb6ecb4915ac9eb2d66cbd92 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/menu/edit_menu.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <item android:id="@+id/accept" + android:icon="@drawable/ic_action_accept" + app:showAsAction="ifRoom" + android:title="valider" + android:onClick="onAccept"/> +</menu> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/menu/main_menu.xml b/Xmen_tp5_2324/app/src/main/res/menu/main_menu.xml new file mode 100644 index 0000000000000000000000000000000000000000..14c76f6bceb6132f2972644d8fbec4d7e57d727e --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/menu/main_menu.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <item android:id="@+id/reinit" + android:icon="@drawable/ic_action_select_all" + app:showAsAction="ifRoom" + android:title="reinit" /> + <item android:id="@+id/create" + android:icon="@drawable/ic_action_new" + app:showAsAction="always" + android:title="new" /> +</menu> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000000000000000000000000000000000000..eca70cfe52eac1ba66ba280a68ca7be8fcf88a16 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000000000000000000000000000000000000..eca70cfe52eac1ba66ba280a68ca7be8fcf88a16 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml b/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml new file mode 100644 index 0000000000000000000000000000000000000000..6f3b755bf50c6b03d8714a9c6184705e6a08389f --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> + <monochrome android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..c209e78ecd372343283f4157dcfd918ec5165bb3 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..b2dfe3d1ba5cf3ee31b3ecc1ced89044a1f3b7a9 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..4f0f1d64e58ba64d180ce43ee13bf9a17835fbca Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..62b611da081676d42f6c3f78a2c91e7bcedddedb Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..948a3070fe34c611c42c0d3ad3013a0dce358be0 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..1b9a6956b3acdc11f40ce2bb3f6efbd845cc243f Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..28d4b77f9f036a47549d47db79c16788749dca10 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..9287f5083623b375139afb391af71cc533a7dd37 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000000000000000000000000000000000000..aa7d6427e6fa1074b79ccd52ef67ac15c5637e85 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/Xmen_tp5_2324/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000000000000000000000000000000000000..9126ae37cbc3587421d6889eadd1d91fbf1994d4 Binary files /dev/null and b/Xmen_tp5_2324/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/Xmen_tp5_2324/app/src/main/res/values-night/themes.xml b/Xmen_tp5_2324/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000000000000000000000000000000000000..bdec012656dd2e61d4d8d5049637ee5cab85bab1 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/values-night/themes.xml @@ -0,0 +1,16 @@ +<resources xmlns:tools="http://schemas.android.com/tools"> + <!-- Base application theme. --> + <style name="Theme.XMen" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> + <!-- Primary brand color. --> + <item name="colorPrimary">@color/purple_200</item> + <item name="colorPrimaryVariant">@color/purple_700</item> + <item name="colorOnPrimary">@color/black</item> + <!-- Secondary brand color. --> + <item name="colorSecondary">@color/teal_200</item> + <item name="colorSecondaryVariant">@color/teal_200</item> + <item name="colorOnSecondary">@color/black</item> + <!-- Status bar color. --> + <item name="android:statusBarColor">?attr/colorPrimaryVariant</item> + <!-- Customize your theme here. --> + </style> +</resources> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/values/arrays.xml b/Xmen_tp5_2324/app/src/main/res/values/arrays.xml new file mode 100644 index 0000000000000000000000000000000000000000..c1dc41f1435babedbb7aa19906f4d340c0ca1332 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/values/arrays.xml @@ -0,0 +1,135 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string-array name="noms"> + <item>Scott Summers</item> + <item>Logan</item> + <item>Charles Xavier</item> + <item>Ororo Munroe</item> + <item>Jean Grey</item> + <item>Dr. Hank McCoy</item> + <item>Rogue</item> + <item>Remy LeBeau</item> + <item>Jubilation Lee</item> + <item>Kevin Sydney</item> + <item>Erik Magnus Lehnsherr</item> + <item>Graydon Creed, Sr.</item> + <item>Cain Marko</item> + <item>Bolivar Trask</item> + <item>Nathan Christopher Charles Summers</item> + <item>Robert Kelly</item> + <item>Raven Darkholme</item> + <item>Graydon Creed Jr.</item> + <item>En Sabah Nur</item> + <item>Lucas Bishop</item> + </string-array> + <string-array name="alias"> + <item>Cyclops</item> + <item>Wolverine</item> + <item>Professor X</item> + <item>Storm</item> + <item>Jean Grey</item> + <item>Beast</item> + <item>Rogue</item> + <item>Gambit</item> + <item>Jubilee</item> + <item>Morph</item> + <item>Magneto</item> + <item>Sabretooth</item> + <item>Juggernaut</item> + <item>Bolivar Trask</item> + <item>Cable</item> + <item> </item> + <item>Mystique</item> + <item> </item> + <item>Apocalypse</item> + <item>Bishop</item> + </string-array> + <string-array name="confrerie"> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>X-Men</item> + <item>Acolytes</item> + <item>Team X</item> + <item> </item> + <item>Mutant Control Agency</item> + <item>X-Force</item> + <item>Friends of Humanity</item> + <item>Brotherhood of Mutants</item> + <item>Friends of Humanity</item> + <item> </item> + <item>X-Men</item> + </string-array> + <string-array name="descriptions"> + <item>He is one of the founding members of the X-Men.</item> + <item>He is a member of the X-Men. He has a mysterious and confused past</item> + <item>He is a powerful telepathic mutant and leader of the X-Men</item> + <item>She is a mutant and member of the X-Men. She comes from Africa. She would also be leader of the Morlocks for a long time</item> + <item>He is one of the original members of the X-Men. While working as a member of the group, Jean developed romantic feelings for Scott Summers and found herself the center of attention to Wolverine as well.</item> + <item>He is one of the original members of the X-Men. He has been with the team throughout its history. He has extensive knowledge in chemistry and biology, whose own research was used to nearly destroy mutantkind. He has also been a member of the Avengers</item> + <item>She is a mutant and a member of the X-Men</item> + <item>He is a mutant and a member of the X-Men and formerly a member of the Thieves\' Guild</item> + <item>She is a mutant and a member of the X-Men.</item> + <item>He is a mutant and member of the X-Men</item> + <item>He is a revolutionary leader who believes mutants are the next stage of evolution for humanity and are destined to take over the world. He is a friend and enemy to Professor Charles Xavier. He is often an adversary of, though sometimes an ally to, the X-Men.</item> + <item>He is a mutant supervillain. He is a former member of Team X and is the archenemy to Wolverine</item> + <item>He is the step-brother to Charles Xavier. He used a mystical gem to become the unstoppable Juggernaut</item> + <item>He is the man who designed the Sentinels</item> + <item>He is a time traveling mutant, mercenary, and leader of X-Force. He spends much of his time trying to take down the evil mutant Apocalypse in the year 3999 AD</item> + <item>Kelly served as a Senator and later as President</item> + <item>She is a shapeshifting mutant. She is the leader of the Brotherhood of Mutants.</item> + <item>He is the son of Sabretooth and Mystique. He was the leader of the anti-mutant hate group Friends of Humanity. </item> + <item>He is an extremely powerful and ancient mutant. His ultimate goal is to rule the entire planet. </item> + <item>He is a mutant from the future of New York in 2055 AD. He became a time traveller in order to make his present a better place</item> + </string-array> + <string-array name="pouvoirs"> + <item>Eye Energy Beams</item> + <item>Healing Factor; Animal-Like Senses; Adamantium Claws and Skeleton</item> + <item>Telepathy</item> + <item>Weather Manipulation; Flight</item> + <item>Telekinesis; Telepathy; Phoenix Force</item> + <item>Extraordinary Agility; Superhuman Strength; Blue Beast-like Appearance</item> + <item>Power Absorption; Memory Absorption; Flight; Super Strength and Durability</item> + <item>Kinetically Charge Objects</item> + <item>Shoots Explosive Electricity</item> + <item>Ability to transform into anyone</item> + <item>Generate and Manipulate Magnetic Fields; Control of Magnetism</item> + <item>Healing Factor; Superhuman Senses; Enhanced Strength; Claws; Animal-Like Appearance</item> + <item>Crimson Gem of Cyttorak; Enormous Strength and Durability; Near Invincibility</item> + <item>Genius Intellect</item> + <item>Telekinesis; Mechanical Arm; Advanced Weaponry</item> + <item>Persuasive Public Speaker</item> + <item>Shapeshifting</item> + <item> </item> + <item>Extreme Strength; Extreme Durability; Shapeshifting; Energy Projection; Size Alteration; Apparent Immortality</item> + <item>Energy Absorption and Redirection</item> + </string-array> + <array name="idimages"> + <item>@drawable/img1</item> + <item>@drawable/img2</item> + <item>@drawable/img3</item> + <item>@drawable/img4</item> + <item>@drawable/img5</item> + <item>@drawable/img6</item> + <item>@drawable/img7</item> + <item>@drawable/img8</item> + <item>@drawable/img9</item> + <item>@drawable/img10</item> + <item>@drawable/img11</item> + <item>@drawable/img12</item> + <item>@drawable/img13</item> + <item>@drawable/img14</item> + <item>@drawable/img15</item> + <item>@drawable/img16</item> + <item>@drawable/img17</item> + <item>@drawable/img18</item> + <item>@drawable/img19</item> + <item>@drawable/img20</item> + </array> +</resources> diff --git a/Xmen_tp5_2324/app/src/main/res/values/colors.xml b/Xmen_tp5_2324/app/src/main/res/values/colors.xml new file mode 100644 index 0000000000000000000000000000000000000000..c59e76fd799500bd3bea4507fd24b18a30c7d5e2 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/values/colors.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="purple_200">#FFBB86FC</color> + <color name="purple_500">#FF6200EE</color> + <color name="purple_700">#FF3700B3</color> + <color name="teal_200">#FF03DAC5</color> + <color name="teal_700">#FF018786</color> + <color name="black">#FF000000</color> + <color name="white">#FFFFFFFF</color> + + <color name="blueBlack">#111f88</color> + <color name="tanAccent">#e3cdb3</color> +</resources> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/values/strings.xml b/Xmen_tp5_2324/app/src/main/res/values/strings.xml new file mode 100644 index 0000000000000000000000000000000000000000..726d7008496c7ece0ba701892b7289e416ed93da --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ +<resources> + <string name="app_name">XMenTp5</string> +</resources> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/values/themes.xml b/Xmen_tp5_2324/app/src/main/res/values/themes.xml new file mode 100644 index 0000000000000000000000000000000000000000..77665615bc300d48e41e0ab47085d7dc4649a49c --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/values/themes.xml @@ -0,0 +1,16 @@ +<resources xmlns:tools="http://schemas.android.com/tools"> + <!-- Base application theme. --> + <style name="Theme.XMen" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> + <!-- Primary brand color. --> + <item name="colorPrimary">@color/purple_500</item> + <item name="colorPrimaryVariant">@color/purple_700</item> + <item name="colorOnPrimary">@color/white</item> + <!-- Secondary brand color. --> + <item name="colorSecondary">@color/teal_200</item> + <item name="colorSecondaryVariant">@color/teal_700</item> + <item name="colorOnSecondary">@color/black</item> + <!-- Status bar color. --> + <item name="android:statusBarColor">?attr/colorPrimaryVariant</item> + <!-- Customize your theme here. --> + </style> +</resources> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/xml/backup_rules.xml b/Xmen_tp5_2324/app/src/main/res/xml/backup_rules.xml new file mode 100644 index 0000000000000000000000000000000000000000..fa0f996d2c2a6bdd11f5371de4268c8389d6c720 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/xml/backup_rules.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + Sample backup rules file; uncomment and customize as necessary. + See https://developer.android.com/guide/topics/data/autobackup + for details. + Note: This file is ignored for devices older that API 31 + See https://developer.android.com/about/versions/12/backup-restore +--> +<full-backup-content> + <!-- + <include domain="sharedpref" path="."/> + <exclude domain="sharedpref" path="device.xml"/> +--> +</full-backup-content> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/main/res/xml/data_extraction_rules.xml b/Xmen_tp5_2324/app/src/main/res/xml/data_extraction_rules.xml new file mode 100644 index 0000000000000000000000000000000000000000..9ee9997b0b4726e57c27b2f7b21462b604ff8a88 --- /dev/null +++ b/Xmen_tp5_2324/app/src/main/res/xml/data_extraction_rules.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + Sample data extraction rules file; uncomment and customize as necessary. + See https://developer.android.com/about/versions/12/backup-restore#xml-changes + for details. +--> +<data-extraction-rules> + <cloud-backup> + <!-- TODO: Use <include> and <exclude> to control what is backed up. + <include .../> + <exclude .../> + --> + </cloud-backup> + <!-- + <device-transfer> + <include .../> + <exclude .../> + </device-transfer> + --> +</data-extraction-rules> \ No newline at end of file diff --git a/Xmen_tp5_2324/app/src/test/java/com/example/xmen_tp5_2324/ExampleUnitTest.java b/Xmen_tp5_2324/app/src/test/java/com/example/xmen_tp5_2324/ExampleUnitTest.java new file mode 100644 index 0000000000000000000000000000000000000000..0d276e128f28ff6f4d531cf1691c59e77eac7f57 --- /dev/null +++ b/Xmen_tp5_2324/app/src/test/java/com/example/xmen_tp5_2324/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package com.example.xmen_tp5_2324; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/Xmen_tp5_2324/build.gradle b/Xmen_tp5_2324/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..f05eacfd34967f6964e795ca3bc78e1421abb1c1 --- /dev/null +++ b/Xmen_tp5_2324/build.gradle @@ -0,0 +1,5 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +plugins { + id 'com.android.application' version '7.4.2' apply false + id 'com.android.library' version '7.4.2' apply false +} \ No newline at end of file diff --git a/Xmen_tp5_2324/gradle.properties b/Xmen_tp5_2324/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..3e927b11efbfe301c31c0a8e4d7e4acb829d631a --- /dev/null +++ b/Xmen_tp5_2324/gradle.properties @@ -0,0 +1,21 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Enables namespacing of each library's R class so that its R class includes only the +# resources declared in the library itself and none from the library's dependencies, +# thereby reducing the size of the R class for that library +android.nonTransitiveRClass=true \ No newline at end of file diff --git a/Xmen_tp5_2324/gradle/wrapper/gradle-wrapper.jar b/Xmen_tp5_2324/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..e708b1c023ec8b20f512888fe07c5bd3ff77bb8f Binary files /dev/null and b/Xmen_tp5_2324/gradle/wrapper/gradle-wrapper.jar differ diff --git a/Xmen_tp5_2324/gradle/wrapper/gradle-wrapper.properties b/Xmen_tp5_2324/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..ed38b539d923babd48fea24f3d6cb87003747f7e --- /dev/null +++ b/Xmen_tp5_2324/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Mon Mar 11 16:02:48 CET 2024 +distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip +distributionPath=wrapper/dists +zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/Xmen_tp5_2324/gradlew b/Xmen_tp5_2324/gradlew new file mode 100755 index 0000000000000000000000000000000000000000..4f906e0c811fc9e230eb44819f509cd0627f2600 --- /dev/null +++ b/Xmen_tp5_2324/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/Xmen_tp5_2324/gradlew.bat b/Xmen_tp5_2324/gradlew.bat new file mode 100644 index 0000000000000000000000000000000000000000..ac1b06f93825db68fb0c0b5150917f340eaa5d02 --- /dev/null +++ b/Xmen_tp5_2324/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/Xmen_tp5_2324/settings.gradle b/Xmen_tp5_2324/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..2d5c5dfcad703030d23e9525c195b21ee0c9f110 --- /dev/null +++ b/Xmen_tp5_2324/settings.gradle @@ -0,0 +1,16 @@ +pluginManagement { + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} +rootProject.name = "Xmen_tp5_2324" +include ':app' diff --git a/dev_mobile_tp b/dev_mobile_tp new file mode 160000 index 0000000000000000000000000000000000000000..d585a6eb14400c03526688cd09f1ed556888948b --- /dev/null +++ b/dev_mobile_tp @@ -0,0 +1 @@ +Subproject commit d585a6eb14400c03526688cd09f1ed556888948b diff --git a/dev_mobile_tp1 b/dev_mobile_tp1 new file mode 160000 index 0000000000000000000000000000000000000000..2121fa41fe013b87f360493c861c80b4b987366f --- /dev/null +++ b/dev_mobile_tp1 @@ -0,0 +1 @@ +Subproject commit 2121fa41fe013b87f360493c861c80b4b987366f diff --git a/dev_mobile_tp2 b/dev_mobile_tp2 new file mode 160000 index 0000000000000000000000000000000000000000..2121fa41fe013b87f360493c861c80b4b987366f --- /dev/null +++ b/dev_mobile_tp2 @@ -0,0 +1 @@ +Subproject commit 2121fa41fe013b87f360493c861c80b4b987366f diff --git a/dev_mobile_tp3 b/dev_mobile_tp3 new file mode 160000 index 0000000000000000000000000000000000000000..2121fa41fe013b87f360493c861c80b4b987366f --- /dev/null +++ b/dev_mobile_tp3 @@ -0,0 +1 @@ +Subproject commit 2121fa41fe013b87f360493c861c80b4b987366f