Guest User

Untitled

a guest
Feb 20th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package com.graba.wzory;
  2.  
  3. import android.content.Intent;
  4. import android.support.v7.app.AppCompatActivity;
  5. import android.os.Bundle;
  6. import android.view.View;
  7.  
  8.  
  9. public class MainActivity extends AppCompatActivity {
  10.  
  11. @Override
  12. protected void onCreate(Bundle savedInstanceState) {
  13. super.onCreate(savedInstanceState);
  14. setContentView(R.layout.activity_main);
  15.  
  16.  
  17.  
  18. findViewById(R.id.textView1).setOnClickListener(new View.OnClickListener(){
  19. public void onClick(View v){
  20. Intent intent = new Intent(this, PoleKwadratuActivity.class);
  21. startActivity(intent);
  22. }
  23. }
  24.  
  25. }
  26.  
  27. }
Add Comment
Please, Sign In to add comment