commit
e16ea0fbb8
@ -0,0 +1,42 @@
|
|||||||
|
package projet.iut.jeu_de_la_vie.model;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.util.AttributeSet;
|
||||||
|
import android.util.Log;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
import androidx.fragment.app.Fragment;
|
||||||
|
|
||||||
|
import projet.iut.jeu_de_la_vie.R;
|
||||||
|
import projet.iut.jeu_de_la_vie.model.plateau.Plateau;
|
||||||
|
|
||||||
|
public class FragmentPlateau extends Fragment {
|
||||||
|
|
||||||
|
private Plateau plateau;
|
||||||
|
|
||||||
|
public Plateau getPlateau() {
|
||||||
|
return plateau;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlateau(Plateau plateau) {
|
||||||
|
this.plateau = plateau;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FragmentPlateau(){
|
||||||
|
super(R.layout.vue_jeu_tmp); //<-- lui passer la future vue du jeu
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onViewCreated (@NonNull View view, Bundle savedInstanceState){
|
||||||
|
Log.d("fragment",isAdded()+"");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onInflate(@NonNull Context context, @NonNull AttributeSet attrs, @Nullable Bundle savedInstanceState) {
|
||||||
|
super.onInflate(context, attrs, savedInstanceState);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
<?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="match_parent">
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/checkBox33"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/checkBox37"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/checkBox39"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/checkBox38"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/checkBox39" />
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/checkBox38"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/checkBox33"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/checkBox33" />
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/checkBox39"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/checkBox33"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/checkBox33" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="quitter"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in new issue