Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created June 15, 2018 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssaurel/8e2e4c0f535dbfe0bcafe885e7d9df36 to your computer and use it in GitHub Desktop.
Save ssaurel/8e2e4c0f535dbfe0bcafe885e7d9df36 to your computer and use it in GitHub Desktop.
Start of the Main Activity code for the Roulette Game on the SSaurel's Channel
package com.ssaurel.roulettegame;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.RotateAnimation;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.Random;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
public class MainActivity extends AppCompatActivity {
@BindView(R.id.spinBtn)
Button spinBtn;
@BindView(R.id.resultTv)
TextView resultTv;
@BindView(R.id.wheel)
ImageView wheel;
// ...
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment