Ajout de la partie "Liste de cartes" disponible depuis l'accueil.
Avec : - Image - Nb Attaque et Nb PVs - Lien clickable (reste qu'à ajouter une barre de recherche)
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
package com.iutlaval.myapplication;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
@@ -26,15 +22,30 @@ public class MainActivity extends AppCompatActivity {
|
||||
playButton.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
//Toast.makeText(getApplicationContext(), "click sur button", Toast.LENGTH_LONG).show();
|
||||
pickDeck();
|
||||
pickDeckGame();
|
||||
}
|
||||
});
|
||||
|
||||
final Button cardButton = (Button) findViewById(R.id.cardButton);
|
||||
cardButton.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
//Toast.makeText(getApplicationContext(), "click sur button", Toast.LENGTH_LONG).show();
|
||||
pickDeckList();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private String pickDeck() {
|
||||
DialogFragment d = new DeckPickDialogue(this);
|
||||
private String pickDeckGame() {
|
||||
DialogFragment d = new DeckPickDialogueGame(this);
|
||||
d.show(getSupportFragmentManager(),"s");
|
||||
|
||||
return "demodeck";
|
||||
}
|
||||
|
||||
private String pickDeckList() {
|
||||
DialogFragment d = new DeckPickDialogueList(this);
|
||||
d.show(getSupportFragmentManager(),"s");
|
||||
|
||||
return "demodeck";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user