package com.example.nemophila; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class MyPageActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mypage); Button friendButton = (Button)findViewById(R.id.friend); friendButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(MyPageActivity.this,FriendActivity.class); startActivity(intent); } }); Button changeMyPageButton = (Button)findViewById(R.id.changeMyPage); changeMyPageButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(MyPageActivity.this,MyPageEditorActivity.class); startActivity(intent); } }); Button requestedButton = (Button)findViewById(R.id.requested); requestedButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(MyPageActivity.this,RequestedActivity.class); startActivity(intent); } }); } }