greenfablab

GreenFabLab Android App
Log | Files | Refs

Dashboard.java (746B)


      1 package space.nocebo.myapplication;
      2 
      3 import android.content.Intent;
      4 import android.os.Bundle;
      5 import android.view.View;
      6 import android.widget.Button;
      7 
      8 import androidx.appcompat.app.AppCompatActivity;
      9 
     10 public class Dashboard extends AppCompatActivity {
     11 
     12     @Override
     13     protected void onCreate(Bundle savedInstanceState) {
     14         super.onCreate(savedInstanceState);
     15         setContentView(R.layout.activity_dashboard);
     16 
     17         Button button = (Button) findViewById(R.id.exhibitButton);
     18         button.setOnClickListener(new View.OnClickListener() {
     19             public void onClick(View v) {
     20                 Intent intent = new Intent(Dashboard.this, ExhibitList.class);
     21                 startActivity(intent);
     22             }
     23         });
     24     }
     25 }