|
|
|
@ -1,9 +1,12 @@
|
|
|
|
|
package com.example.cmknowledgegraph;
|
|
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.view.LayoutInflater;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
|
import android.widget.Button;
|
|
|
|
|
import android.widget.ImageButton;
|
|
|
|
|
|
|
|
|
|
import androidx.fragment.app.Fragment;
|
|
|
|
|
|
|
|
|
@ -14,4 +17,18 @@ public class PersonContent extends Fragment {
|
|
|
|
|
// Inflate the layout for this fragment
|
|
|
|
|
return inflater.inflate( R.layout.activity_personality_center, container, false ); //要加载的layout文件
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void onActivityCreated(Bundle savedInstanceState) {
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
|
|
Button login_pc_btn = (Button) getActivity().findViewById(R.id.login_pc_button);
|
|
|
|
|
login_pc_btn.setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
public void onClick(View v) {
|
|
|
|
|
//跳转到LoginActivity
|
|
|
|
|
Intent intent=new Intent();
|
|
|
|
|
intent.setClass(getActivity(),LoginActivity.class);
|
|
|
|
|
startActivity(intent);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|