Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.colorgame20;
- import android.content.Context;
- import android.content.Intent;
- import android.os.Bundle;
- import android.os.CountDownTimer;
- import android.support.v7.app.AlertDialog;
- import android.support.v7.app.AppCompatActivity;
- import android.util.Log;
- import android.view.Gravity;
- import android.view.View;
- import android.widget.Button;
- import android.widget.GridLayout;
- import android.widget.ImageView;
- import android.widget.LinearLayout;
- import android.widget.TextView;
- import android.widget.Toast;
- import java.util.ArrayList;
- import java.util.List;
- public class GameActivity extends AppCompatActivity{
- AlertDialog.Builder ad;
- Context context;
- static final ArrayList<Integer> BUTTON_IDS = new ArrayList<>();
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.game_activity);
- final TextView timer = (TextView)findViewById(R.id.textView);
- Buttons buttonField = new Buttons(context);
- buttonField.createButtonsField();
- /*
- FirstGameplay firstGameplay = new FirstGameplay();
- firstGameplay.context = this;
- firstGameplay.main();
- if (firstGameplay.correctnessCheck()) {
- Levels.levelNumber++;
- }
- */
- new CountDownTimer(10000, 500) {
- public void onTick(long millisUntilFinished) {
- timer.setText("00 : " + millisUntilFinished / 1000);
- }
- public void onFinish() {
- }
- }.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement