maj menu
This commit is contained in:
		@@ -1,13 +1,52 @@
 | 
			
		||||
package com.example.mastermind;
 | 
			
		||||
 | 
			
		||||
import android.app.Activity;
 | 
			
		||||
import android.content.Intent;
 | 
			
		||||
import android.os.Bundle;
 | 
			
		||||
import android.widget.Button;
 | 
			
		||||
import android.view.View;
 | 
			
		||||
 | 
			
		||||
public class MainActivity extends Activity {
 | 
			
		||||
 | 
			
		||||
    private Button mHotSeat;
 | 
			
		||||
    private Button mORDI;
 | 
			
		||||
    private Button mSettings;
 | 
			
		||||
    //private Button mRules;
 | 
			
		||||
    @Override
 | 
			
		||||
    protected void onCreate(Bundle savedInstanceState) {
 | 
			
		||||
        super.onCreate(savedInstanceState);
 | 
			
		||||
        setContentView(R.layout.activity_main);
 | 
			
		||||
 | 
			
		||||
        mHotSeat = findViewById(R.id.HotSeat);
 | 
			
		||||
        mORDI = findViewById(R.id.ORDI);
 | 
			
		||||
        mSettings = findViewById(R.id.Settings);
 | 
			
		||||
        //mRules = findViewById(R.id.Rules);
 | 
			
		||||
        /*mHotSeat.setOnClickListener(new View.OnClickListener() {
 | 
			
		||||
            @Override
 | 
			
		||||
            public void onClick(View v) {
 | 
			
		||||
                Intent tp1Intent = new Intent(MainActivity.this, HotSeat.class);
 | 
			
		||||
                startActivity(tp1Intent);
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
        mORDI.setOnClickListener(new View.OnClickListener() {
 | 
			
		||||
            @Override
 | 
			
		||||
            public void onClick(View v) {
 | 
			
		||||
                Intent tp2Intent = new Intent(MainActivity.this, ORDI.class);
 | 
			
		||||
                startActivity(tp2Intent);
 | 
			
		||||
            }
 | 
			
		||||
        });*/
 | 
			
		||||
        /*mSettings.setOnClickListener(new View.OnClickListener() {
 | 
			
		||||
            @Override
 | 
			
		||||
            public void onClick(View v) {
 | 
			
		||||
                Intent tp3Intent = new Intent(MainActivity.this, Settings.class);
 | 
			
		||||
                startActivity(tp3Intent);
 | 
			
		||||
            }
 | 
			
		||||
        });*/
 | 
			
		||||
        /*mTP4.setOnClickListener(new View.OnClickListener() {
 | 
			
		||||
            @Override
 | 
			
		||||
            public void onClick(View v) {
 | 
			
		||||
                Intent tp4Intent = new Intent(MainActivity.this, TP4.class);
 | 
			
		||||
                startActivity(tp4Intent);
 | 
			
		||||
            }
 | 
			
		||||
        });*/
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -6,6 +6,7 @@
 | 
			
		||||
    android:layout_height="match_parent"
 | 
			
		||||
    android:background="#333"
 | 
			
		||||
    android:padding="10dp"
 | 
			
		||||
    android:orientation="vertical"
 | 
			
		||||
    tools:context=".MainActivity"
 | 
			
		||||
    >
 | 
			
		||||
 | 
			
		||||
@@ -15,44 +16,70 @@
 | 
			
		||||
        android:scaleType="centerCrop"
 | 
			
		||||
        android:src="@drawable/brain">
 | 
			
		||||
    </ImageView>
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/title"
 | 
			
		||||
    <LinearLayout
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:text="Mastermind"
 | 
			
		||||
        android:gravity="center"
 | 
			
		||||
        android:textColor="#eee"
 | 
			
		||||
        android:padding="50dp"
 | 
			
		||||
        android:textSize="50dp"
 | 
			
		||||
        android:autoSizeMaxTextSize="100dp"
 | 
			
		||||
        android:autoSizeMinTextSize="10dp">
 | 
			
		||||
    </TextView>
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:orientation="vertical">
 | 
			
		||||
 | 
			
		||||
    <Button
 | 
			
		||||
        android:id="@+id/solo"
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_below="@id/title"
 | 
			
		||||
        android:padding="20dp"
 | 
			
		||||
        android:layout_margin="20dp"
 | 
			
		||||
        android:text="1 VS 1"
 | 
			
		||||
        android:textSize="30dp"
 | 
			
		||||
        android:background="#aaa">
 | 
			
		||||
    </Button>
 | 
			
		||||
        <TextView
 | 
			
		||||
            android:id="@+id/title"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:text="Mastermind"
 | 
			
		||||
            android:gravity="center"
 | 
			
		||||
            android:textColor="#eee"
 | 
			
		||||
            android:padding="50dp"
 | 
			
		||||
            android:textSize="50dp"
 | 
			
		||||
            android:autoSizeMaxTextSize="100dp"
 | 
			
		||||
            android:autoSizeMinTextSize="10dp">
 | 
			
		||||
        </TextView>
 | 
			
		||||
 | 
			
		||||
    <Button
 | 
			
		||||
        android:id="@+id/duo"
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_below="@id/solo"
 | 
			
		||||
        android:padding="20dp"
 | 
			
		||||
        android:layout_margin="20dp"
 | 
			
		||||
        android:text="1 VS ORDI"
 | 
			
		||||
        android:textSize="30dp"
 | 
			
		||||
        android:background="#aaa">
 | 
			
		||||
    </Button>
 | 
			
		||||
        <Button
 | 
			
		||||
            android:id="@+id/ORDI"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:padding="20dp"
 | 
			
		||||
            android:layout_margin="20dp"
 | 
			
		||||
            android:text="1 VS 1"
 | 
			
		||||
            android:textSize="30dp"
 | 
			
		||||
            android:background="#aaa">
 | 
			
		||||
        </Button>
 | 
			
		||||
 | 
			
		||||
        <Button
 | 
			
		||||
            android:id="@+id/HotSeat"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:padding="20dp"
 | 
			
		||||
            android:layout_margin="20dp"
 | 
			
		||||
            android:text="1 VS ORDI"
 | 
			
		||||
            android:textSize="30dp"
 | 
			
		||||
            android:background="#aaa">
 | 
			
		||||
        </Button>
 | 
			
		||||
 | 
			
		||||
        <Button
 | 
			
		||||
            android:id="@+id/Settings"
 | 
			
		||||
            android:layout_width="wrap_content"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:padding="20dp"
 | 
			
		||||
            android:layout_margin="20dp"
 | 
			
		||||
            android:layout_gravity="center"
 | 
			
		||||
            android:text="Paramètres"
 | 
			
		||||
            android:textSize="15dp"
 | 
			
		||||
            android:background="#aaa">
 | 
			
		||||
        </Button>
 | 
			
		||||
 | 
			
		||||
        <Button
 | 
			
		||||
            android:id="@+id/Rules"
 | 
			
		||||
            android:layout_width="wrap_content"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:padding="20dp"
 | 
			
		||||
            android:layout_gravity="center"
 | 
			
		||||
            android:layout_margin="20dp"
 | 
			
		||||
            android:text="Règles"
 | 
			
		||||
            android:textSize="15dp"
 | 
			
		||||
            android:background="#aaa">
 | 
			
		||||
        </Button>
 | 
			
		||||
    </LinearLayout>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
</RelativeLayout>
 | 
			
		||||
		Reference in New Issue
	
	Block a user