Advertisement
caparol6991

Untitled

Apr 14th, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement