package com.braintest.brain.test;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    TextView  startBtn, exitBtn, aboutBtn;

    ImageView ImSet;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        BrainTestApp.setStatusBar(this,true);
        startBtn = findViewById(R.id.btn_play);
        ImSet = findViewById(R.id.im_set);
        startBtn.setOnClickListener(v -> {
            Intent page2 = new Intent(MainActivity.this, LevelsPage.class);
            startActivity(page2);
        });

        ImSet.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent page2 = new Intent(MainActivity.this, SetActivity.class);
                startActivity(page2);
            }
        });


//
//        aboutBtn.setOnClickListener(v -> showDialogAbout());
//
//        exitBtn.setOnClickListener(v -> finish());
    }




}
