Advertisement
Imran2544

JAVA

Nov 7th, 2020
2,137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1. package com.example.bproperty;
  2.  
  3. import androidx.appcompat.app.AppCompatActivity;
  4.  
  5. import android.content.Intent;
  6. import android.os.Bundle;
  7. import android.view.View;
  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.     public void findProperties(View view) {
  18.         Intent intent = new Intent(this, FindProperties.class);
  19.         startActivity(intent);
  20.     }
  21.  
  22.     public void inbox(View view) {
  23.         Intent intent = new Intent(this, Inbox.class);
  24.         startActivity(intent);
  25.     }
  26.  
  27.     public void profile(View view) {
  28.         Intent intent = new Intent(this, UserProfile.class);
  29.         startActivity(intent);
  30.     }
  31.  
  32.     public void logout(View view) {
  33.         Intent intent = new Intent(this, Logout.class);
  34.         startActivity(intent);
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement