caparol6991

Untitled

Apr 14th, 2019
139
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. w on create :
  2.  
  3.  
  4. lastLocalization = (Button) findViewById(R.id.lastLocalization);
  5. lastLocalization.setOnClickListener(new View.OnClickListener(){
  6. @Override
  7. public void onClick(View view){
  8. openLastLocalization();
  9. }
  10. });
  11.  
  12. addDebtor = findViewById(R.id.addDebtor);
  13. addDebtor.setOnClickListener(new View.OnClickListener() {
  14. @Override
  15. public void onClick(View view){
  16. openAddDebtor();
  17. }
  18. });
  19.  
  20. debtorsListButton = (Button) findViewById(R.id.debtorsList);
  21. debtorsListButton.setOnClickListener(new View.OnClickListener() {
  22. @Override
  23. public void onClick(View view){
  24. openDebtorsList();
  25. }
  26. });
  27.  
  28.  
  29.  
  30. niżej tam na dole:
  31.  
  32. public void openAddDebtor(){
  33. Intent intent = new Intent(this, addDebtor.class);
  34. startActivity(intent);
  35. }
  36.  
  37. public void openDebtorsList(){
  38. Intent intent = new Intent(this, debtorsList.class);
  39. startActivity(intent);
  40. }
  41.  
  42. public void openLastLocalization(){
  43. Intent intent = new Intent(this, lastLocalization.class);
  44. startActivity(intent);
RAW Paste Data