diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f6f532e Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 9aec534..fb7c78b 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,11 @@ lint/outputs/ lint/tmp/ # lint/reports/ .idea/ + +app/src/main/res/drawable/dracaufeu.png + +app/src/main/res/drawable/reptincel.png + +app/src/main/res/drawable/.DS_Store + +app/src/main/res/.DS_Store diff --git a/.idea/.name b/.idea/.name index 6647814..ad7db8c 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -ProjectAndroid \ No newline at end of file +PokéQuizz \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 37a7509..7bfef59 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/app/.DS_Store b/app/.DS_Store new file mode 100644 index 0000000..b2d3550 Binary files /dev/null and b/app/.DS_Store differ diff --git a/app/build.gradle b/app/build.gradle index be7cad3..94e891c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,6 +17,12 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + // IMPORTANT POUR FAIRE FONCTIONNER RETROFIT + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } } dependencies { @@ -26,4 +32,12 @@ dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' + implementation 'androidx.recyclerview:recyclerview:1.1.0' + implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.3' + + + // Retrofit + def retrofit_version = '2.7.1' + implementation "com.squareup.retrofit2:retrofit:$retrofit_version" + implementation "com.squareup.retrofit2:converter-gson:$retrofit_version" } diff --git a/app/src/.DS_Store b/app/src/.DS_Store new file mode 100644 index 0000000..0e349fa Binary files /dev/null and b/app/src/.DS_Store differ diff --git a/app/src/main/.DS_Store b/app/src/main/.DS_Store new file mode 100644 index 0000000..c5079b0 Binary files /dev/null and b/app/src/main/.DS_Store differ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8e58114..1b23741 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,6 +2,8 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/stod/projectandroid/About.java b/app/src/main/java/com/stod/projectandroid/About.java new file mode 100644 index 0000000..646e9ac --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/About.java @@ -0,0 +1,19 @@ +package com.stod.projectandroid; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; +import android.widget.TextView; + +public class About extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_about); + + + TextView versionValueTextView = findViewById(R.id.versionValueTextView); + versionValueTextView.setText(BuildConfig.VERSION_NAME); + } +} diff --git a/app/src/main/java/com/stod/projectandroid/Answers.java b/app/src/main/java/com/stod/projectandroid/Answers.java new file mode 100644 index 0000000..133dd9c --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/Answers.java @@ -0,0 +1,7 @@ +package com.stod.projectandroid; + +import java.lang.reflect.Array; + +public class Answers { + public Array randomAnswer; +} diff --git a/app/src/main/java/com/stod/projectandroid/AnswersQuestions.java b/app/src/main/java/com/stod/projectandroid/AnswersQuestions.java new file mode 100644 index 0000000..db39b85 --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/AnswersQuestions.java @@ -0,0 +1,11 @@ +package com.stod.projectandroid; + +public class AnswersQuestions { + public String sentence; + public boolean isRight; + + public AnswersQuestions(String sentence, boolean isRight) { + this.sentence = sentence; + this.isRight = isRight; + } +} diff --git a/app/src/main/java/com/stod/projectandroid/ListQuestionsRecyclerView.java b/app/src/main/java/com/stod/projectandroid/ListQuestionsRecyclerView.java new file mode 100644 index 0000000..a8d97f1 --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/ListQuestionsRecyclerView.java @@ -0,0 +1,103 @@ +package com.stod.projectandroid; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import android.app.Activity; +import android.content.res.Resources; +import android.os.Bundle; +import android.util.Log; + +import com.stod.projectandroid.api.ExchangeApi; +import com.stod.projectandroid.api.AnswersData; +import com.stod.projectandroid.api.AnswersWrapper; +import com.stod.projectandroid.api.AnwsersDifficultyWrapper; +import java.util.ArrayList; +import java.util.List; + +import retrofit2.Call; +import retrofit2.Callback; +import retrofit2.Retrofit; +import retrofit2.converter.gson.GsonConverterFactory; + +import retrofit2.Response; + +public class ListQuestionsRecyclerView extends AppCompatActivity { + + private QuestionsAdapter adapter; + private List questions = new ArrayList<>(); + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_list_questions_recycler_view); + + // définition de la source données + // aujourd'hui en dur, mais peut provenir d'une API, BDD, etc. +// this.currencies.add(new Currency(R.drawable.flag_usa, 1.08f, "$")); +// this.currencies.add(new Currency(R.drawable.flag_japan, 118.59f, "Y")); + + // initialisation de l'adapter + adapter = new QuestionsAdapter(this.questions); + + // initialisation de la vue (RecyclerView) + RecyclerView recyclerView = findViewById(R.id.recyclerView); + recyclerView.setLayoutManager(new LinearLayoutManager(this)); + recyclerView.setAdapter(adapter); + + // REQUETE HTTP + + // Création du client retrofit + // il va donc taper sur la baseUrl donnée + // et parser le résultat en JSON + Retrofit retrofit = new Retrofit.Builder() + .baseUrl("http://gryt.tech:8080/") + .addConverterFactory(GsonConverterFactory.create()) + .build(); + + // Génération de notre API + // à partir du client retrofit + ExchangeApi api = retrofit.create(ExchangeApi.class); + + String difficulty = ""; + + // Création de la requête + Call> call = api.getQuestions(difficulty); + + + + // Exécution de la requête en asynchrone + call.enqueue(new Callback>() { + @Override + public void onResponse(Call> call, Response> response) { + for (AnwsersDifficultyWrapper a: response.body()) { + String resPokemon = a.asset; + String resType = a.asset_type; + String resAnimated = a.detail_image; + String difficulty = a.difficulty; + AnswersData[] answers = a.answers; + List answersPurposeList = new ArrayList(); + + int resourceId = Resources.getSystem().getIdentifier(resPokemon, "drawable", "com.stod.projectandroid"); + + for (AnswersData i : a.answers) { + answersPurposeList.add(new AnswersQuestions(i.sentence, i.isRight)); + + } + + questions.add(new Questions(resourceId, resType, resAnimated, difficulty,answersPurposeList)); + } + + + + } + + @Override + public void onFailure(Call> call, Throwable t) { + Log.e("CurrencyListActivity", "onFailure: ", t); + } + }); + + } +} diff --git a/app/src/main/java/com/stod/projectandroid/Pokemon.java b/app/src/main/java/com/stod/projectandroid/Pokemon.java new file mode 100644 index 0000000..6bb3dd6 --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/Pokemon.java @@ -0,0 +1,17 @@ +package com.stod.projectandroid; + +import androidx.annotation.DrawableRes; + +import java.lang.reflect.Array; + +public class Pokemon { + + @DrawableRes public int imageId; + public String nom; + public int pokemonId; + public String difficulty; + public Array responses; + + + +} diff --git a/app/src/main/java/com/stod/projectandroid/QuestionFlascardActivity.java b/app/src/main/java/com/stod/projectandroid/QuestionFlascardActivity.java new file mode 100644 index 0000000..f7999a1 --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/QuestionFlascardActivity.java @@ -0,0 +1,100 @@ +package com.stod.projectandroid; + +import androidx.annotation.DrawableRes; +import androidx.appcompat.app.AlertDialog; +import androidx.appcompat.app.AppCompatActivity; + +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.RadioButton; +import android.widget.RadioGroup; +import android.widget.TextView; + +public class QuestionFlascardActivity extends AppCompatActivity { + private Pokemon pokemon; + private String goodAnswer; + private String difficulty; + private int compteur; + private int numQuestion; + + private String nom; + @DrawableRes + public int imageId; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_question_flascard); + + //pokemon = getIntent().getParcelableExtra("pokemon"); + Intent intent = getIntent(); + compteur = intent.getIntExtra("numQuestion",1); + numQuestion = compteur; + final TextView noQuestion = findViewById(R.id.noQuestionText); + noQuestion.setText("Question "+numQuestion); + compteur+=1; + nom="bulbizare"; + imageId=R.drawable.pikachu; + + final ImageView pokemonImage = findViewById(R.id.pokemonImageView); + pokemonImage.setImageResource(imageId); + goodAnswer = nom; + + final Button validate = findViewById(R.id.validateButton); + final RadioGroup radioGroup = findViewById(R.id.answerRadioGroup); + + validate.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + + int idButtonChecked = radioGroup.getCheckedRadioButtonId(); + RadioButton selectedButton = findViewById(idButtonChecked); + String value = selectedButton.getText().toString(); + Log.i(QuestionFlascardActivity.ACCESSIBILITY_SERVICE, value + ""); + + if(value.contains("RadioButton3")){ + new AlertDialog.Builder(QuestionFlascardActivity.this) + .setTitle("Bonne réponse") + .setMessage("La bonne réponse était "+ nom) + .setCancelable(true) + .setPositiveButton("ok", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent2 = new Intent(QuestionFlascardActivity.this, QuestionFlascardActivity.class); + intent2.putExtra("numQuestion", compteur); + startActivity(intent2); + finish(); + + } + }).show(); + Log.i(QuestionFlascardActivity.ACCESSIBILITY_SERVICE, "Bonne reponse"); + } + else{ + new AlertDialog.Builder(QuestionFlascardActivity.this) + .setTitle("Mauvaise réponse") + .setMessage("La bonne réponse était "+ nom) + .setCancelable(true) + .setPositiveButton("ok", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent2 = new Intent(QuestionFlascardActivity.this, QuestionFlascardActivity.class); + intent2.putExtra("numQuestion", compteur); + startActivity(intent2); + finish(); + + } + }).show(); + Log.i(QuestionFlascardActivity.ACCESSIBILITY_SERVICE, "Bonne reponse"); + } + + } + }); + + } +} diff --git a/app/src/main/java/com/stod/projectandroid/Questions.java b/app/src/main/java/com/stod/projectandroid/Questions.java new file mode 100644 index 0000000..65305ed --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/Questions.java @@ -0,0 +1,84 @@ +package com.stod.projectandroid; + +import android.os.Parcel; +import android.os.Parcelable; + +import androidx.annotation.DrawableRes; + +import com.stod.projectandroid.api.AnswersData; + +import java.lang.reflect.Array; +import java.util.ArrayList; +import java.util.List; + +public class Questions implements Parcelable { + + + + private final int resPokemon; + private final String resType; + private final String resAnimated; + private final String difficulty; + private List answers; + + + public Questions(int resPokemon, String resType, String resAnimated, String difficulty, List answers) { + this.resPokemon = resPokemon; + this.resType = resType; + this.resAnimated = resAnimated; + this.difficulty = difficulty; + this.answers = answers; + } + + protected Questions(Parcel in) { + resPokemon = in.readInt(); + resType = in.readString(); + resAnimated = in.readString(); + difficulty = in.readString(); + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + dest.writeInt(resPokemon); + dest.writeString(resType); + dest.writeString(resAnimated); + dest.writeString(difficulty); + } + + @Override + public int describeContents() { + return 0; + } + + public static final Creator CREATOR = new Creator() { + @Override + public Questions createFromParcel(Parcel in) { + return new Questions(in); + } + + @Override + public Questions[] newArray(int size) { + return new Questions[size]; + } + }; + + public int getResPokemon() { + return resPokemon; + } + + public String getResType() { + return resType; + } + + public String getResAnimated() { + return resAnimated; + } + + public String getDifficulty() { + return difficulty; + } + + public List getAnswers() { + return answers; + } +} diff --git a/app/src/main/java/com/stod/projectandroid/QuestionsAdapter.java b/app/src/main/java/com/stod/projectandroid/QuestionsAdapter.java new file mode 100644 index 0000000..380ea24 --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/QuestionsAdapter.java @@ -0,0 +1,69 @@ +package com.stod.projectandroid; + +import androidx.recyclerview.widget.RecyclerView; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ImageView; +import android.widget.TextView; + +import androidx.annotation.NonNull; + +import java.util.List; + +public class QuestionsAdapter extends RecyclerView.Adapter { + + + + private final List questions; + + public QuestionsAdapter(List questions) { + this.questions = questions; + } + + + + static class ViewHolder extends RecyclerView.ViewHolder { + + final TextView questionTextView; + final ImageView flag; + + public ViewHolder(@NonNull View itemView) { + super(itemView); + flag = itemView.findViewById(R.id.imageView); + questionTextView = itemView.findViewById(R.id.questionTextView); + } + } + + /** + * Méthode appelée 1x à l'init pour chaque item + */ + @NonNull + @Override + public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + // on converti le fichier XML d'item en objet Java + View view = LayoutInflater.from(parent.getContext()) + .inflate(R.layout.item_question, parent, false); + + // instancier le ViewHolder qui sera TOUJOURS lié à cette vue + return new ViewHolder(view); + } + + /** + * appelé à chaque fois qu'un item doit être dessiné à l'écran + */ + @Override + public void onBindViewHolder(@NonNull ViewHolder holder, int position) { + // on récupère la donnée associée à cet index + Questions question = questions.get(position); + + // on met à jour l'UI en passant par le ViewHolder + //holder.flag.setImageResource(question.i); + //holder.questionTextView.setText(question.questionTextView + ""); + } + + @Override + public int getItemCount() { + return questions.size(); + } +} diff --git a/app/src/main/java/com/stod/projectandroid/api/AnswersData.java b/app/src/main/java/com/stod/projectandroid/api/AnswersData.java new file mode 100644 index 0000000..e296007 --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/api/AnswersData.java @@ -0,0 +1,6 @@ +package com.stod.projectandroid.api; + +public class AnswersData { + public String sentence; + public boolean isRight; +} diff --git a/app/src/main/java/com/stod/projectandroid/api/AnswersWrapper.java b/app/src/main/java/com/stod/projectandroid/api/AnswersWrapper.java new file mode 100644 index 0000000..a21b30b --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/api/AnswersWrapper.java @@ -0,0 +1,12 @@ +package com.stod.projectandroid.api; + +import java.util.List; + +public class AnswersWrapper { + public String asset; + public String asset_type; + public String detail_image; + public String difficulty; + public List answers; + +} diff --git a/app/src/main/java/com/stod/projectandroid/api/AnwsersDifficultyWrapper.java b/app/src/main/java/com/stod/projectandroid/api/AnwsersDifficultyWrapper.java new file mode 100644 index 0000000..3b9b7ba --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/api/AnwsersDifficultyWrapper.java @@ -0,0 +1,12 @@ +package com.stod.projectandroid.api; + +import java.util.List; + +public class AnwsersDifficultyWrapper { + + public String asset; + public String asset_type; + public String detail_image; + public String difficulty; + public AnswersData[] answers; +} diff --git a/app/src/main/java/com/stod/projectandroid/api/ExchangeApi.java b/app/src/main/java/com/stod/projectandroid/api/ExchangeApi.java new file mode 100644 index 0000000..57643bd --- /dev/null +++ b/app/src/main/java/com/stod/projectandroid/api/ExchangeApi.java @@ -0,0 +1,16 @@ +package com.stod.projectandroid.api; + +import java.util.List; + +import retrofit2.Call; +import retrofit2.http.GET; +import retrofit2.http.Query; + +public interface ExchangeApi { + + @GET("pokemons/") + Call> getQuestions(@Query("difficulty") String difficulty); + + @GET("pokemons/") + Call >getAllQuestions(); +} diff --git a/app/src/main/res/drawable/.DS_Store b/app/src/main/res/drawable/.DS_Store new file mode 100644 index 0000000..7e566bc Binary files /dev/null and b/app/src/main/res/drawable/.DS_Store differ diff --git a/app/src/main/res/drawable/alakazam.png b/app/src/main/res/drawable/alakazam.png new file mode 100644 index 0000000..397e74d Binary files /dev/null and b/app/src/main/res/drawable/alakazam.png differ diff --git a/app/src/main/res/drawable/arbok.png b/app/src/main/res/drawable/arbok.png new file mode 100644 index 0000000..3e50266 Binary files /dev/null and b/app/src/main/res/drawable/arbok.png differ diff --git a/app/src/main/res/drawable/arcanin.png b/app/src/main/res/drawable/arcanin.png new file mode 100644 index 0000000..a9aed2b Binary files /dev/null and b/app/src/main/res/drawable/arcanin.png differ diff --git a/app/src/main/res/drawable/aspicot.png b/app/src/main/res/drawable/aspicot.png new file mode 100644 index 0000000..20812ab Binary files /dev/null and b/app/src/main/res/drawable/aspicot.png differ diff --git a/app/src/main/res/drawable/doduo.png b/app/src/main/res/drawable/doduo.png new file mode 100644 index 0000000..5100538 Binary files /dev/null and b/app/src/main/res/drawable/doduo.png differ diff --git a/app/src/main/res/drawable/dracaufeu.png b/app/src/main/res/drawable/dracaufeu.png deleted file mode 100644 index b96cea1..0000000 Binary files a/app/src/main/res/drawable/dracaufeu.png and /dev/null differ diff --git a/app/src/main/res/drawable/electhor.png b/app/src/main/res/drawable/electhor.png new file mode 100644 index 0000000..6880842 Binary files /dev/null and b/app/src/main/res/drawable/electhor.png differ diff --git a/app/src/main/res/drawable/excelangue.png b/app/src/main/res/drawable/excelangue.png new file mode 100644 index 0000000..7774b37 Binary files /dev/null and b/app/src/main/res/drawable/excelangue.png differ diff --git a/app/src/main/res/drawable/goupix.png b/app/src/main/res/drawable/goupix.png new file mode 100644 index 0000000..bb4da23 Binary files /dev/null and b/app/src/main/res/drawable/goupix.png differ diff --git a/app/src/main/res/drawable/gravalanch.png b/app/src/main/res/drawable/gravalanch.png new file mode 100644 index 0000000..313235a Binary files /dev/null and b/app/src/main/res/drawable/gravalanch.png differ diff --git a/app/src/main/res/drawable/grodoudou.png b/app/src/main/res/drawable/grodoudou.png new file mode 100644 index 0000000..66c826c Binary files /dev/null and b/app/src/main/res/drawable/grodoudou.png differ diff --git a/app/src/main/res/drawable/hypnomade.png b/app/src/main/res/drawable/hypnomade.png new file mode 100644 index 0000000..fd438d1 Binary files /dev/null and b/app/src/main/res/drawable/hypnomade.png differ diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index 0d025f9..0000000 --- a/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/drawable/kabuto.png b/app/src/main/res/drawable/kabuto.png new file mode 100644 index 0000000..6244cfc Binary files /dev/null and b/app/src/main/res/drawable/kabuto.png differ diff --git a/app/src/main/res/drawable/lamantine.png b/app/src/main/res/drawable/lamantine.png new file mode 100644 index 0000000..f799d4c Binary files /dev/null and b/app/src/main/res/drawable/lamantine.png differ diff --git a/app/src/main/res/drawable/noeunoeuf.png b/app/src/main/res/drawable/noeunoeuf.png new file mode 100644 index 0000000..0ee619f Binary files /dev/null and b/app/src/main/res/drawable/noeunoeuf.png differ diff --git a/app/src/main/res/drawable/pikachu.png b/app/src/main/res/drawable/pikachu.png new file mode 100644 index 0000000..037d76e Binary files /dev/null and b/app/src/main/res/drawable/pikachu.png differ diff --git a/app/src/main/res/drawable/pokeball.png b/app/src/main/res/drawable/pokeball.png deleted file mode 100644 index fdc161c..0000000 Binary files a/app/src/main/res/drawable/pokeball.png and /dev/null differ diff --git a/app/src/main/res/drawable/reptincel.png b/app/src/main/res/drawable/reptincel.png deleted file mode 100644 index 38b885c..0000000 Binary files a/app/src/main/res/drawable/reptincel.png and /dev/null differ diff --git a/app/src/main/res/drawable/roucoups.png b/app/src/main/res/drawable/roucoups.png new file mode 100644 index 0000000..7966443 Binary files /dev/null and b/app/src/main/res/drawable/roucoups.png differ diff --git a/app/src/main/res/drawable/salameche.png b/app/src/main/res/drawable/salameche.png deleted file mode 100644 index 0793a0e..0000000 Binary files a/app/src/main/res/drawable/salameche.png and /dev/null differ diff --git a/app/src/main/res/drawable/saquedeneu.png b/app/src/main/res/drawable/saquedeneu.png new file mode 100644 index 0000000..334fadf Binary files /dev/null and b/app/src/main/res/drawable/saquedeneu.png differ diff --git a/app/src/main/res/drawable/smogogo.png b/app/src/main/res/drawable/smogogo.png new file mode 100644 index 0000000..0dfee47 Binary files /dev/null and b/app/src/main/res/drawable/smogogo.png differ diff --git a/app/src/main/res/drawable/spectrum.png b/app/src/main/res/drawable/spectrum.png new file mode 100644 index 0000000..dc709a8 Binary files /dev/null and b/app/src/main/res/drawable/spectrum.png differ diff --git a/app/src/main/res/drawable/stari.png b/app/src/main/res/drawable/stari.png new file mode 100644 index 0000000..b55f28a Binary files /dev/null and b/app/src/main/res/drawable/stari.png differ diff --git a/app/src/main/res/drawable/tygnon.png b/app/src/main/res/drawable/tygnon.png new file mode 100644 index 0000000..eaff110 Binary files /dev/null and b/app/src/main/res/drawable/tygnon.png differ diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml new file mode 100644 index 0000000..e9e239b --- /dev/null +++ b/app/src/main/res/layout/activity_about.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_list_questions_recycler_view.xml b/app/src/main/res/layout/activity_list_questions_recycler_view.xml new file mode 100644 index 0000000..7242676 --- /dev/null +++ b/app/src/main/res/layout/activity_list_questions_recycler_view.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_question_flascard.xml b/app/src/main/res/layout/activity_question_flascard.xml new file mode 100644 index 0000000..eeabde2 --- /dev/null +++ b/app/src/main/res/layout/activity_question_flascard.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + +