Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package cqc.quiz;
- import android.app.Activity;
- import android.os.Bundle;
- import android.text.Html;
- import android.view.View;
- import android.view.View.OnClickListener;
- import android.widget.Button;
- public class CQCQuizActivity extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- Button main1 = (Button) findViewById(R.id.main1);
- main1.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- setContentView(R.layout.simulazione_esame);
- }
- });
- Button main2 = (Button) findViewById(R.id.main2);
- main2.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- setContentView(R.layout.statistiche);
- }
- });
- Button home = (Button) findViewById(R.id.home);
- home.setOnClickListener(new OnClickListener() {
- public void onClick(View v) {
- setContentView(R.layout.main);
- }
- });
- }
- }
Add Comment
Please, Sign In to add comment