use of com.alphago.alphago.handler.BackPressCloseHandler in project Alphago by Onedelay.
the class MainActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
backPressCloseHandler = new BackPressCloseHandler(this);
findViewById(R.id.btn_recognition).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
new ImageSelectionMethodDialog().show(getSupportFragmentManager(), "dialog");
}
});
findViewById(R.id.btn_card_book).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this, CardBookActivity.class);
startActivity(intent);
}
});
findViewById(R.id.btn_game).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
new GameModeSelectionDialog().show(getSupportFragmentManager(), "dialog");
}
});
findViewById(R.id.btn_collection).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MainActivity.this, CollectionActivity.class);
startActivity(intent);
}
});
}
Aggregations