parent
186ce96174
commit
ae9e93e9a3
@ -1,14 +1,42 @@
|
||||
package com.example.chengzi;
|
||||
|
||||
import static androidx.constraintlayout.helper.widget.MotionEffect.TAG;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
public class userinformation extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.userinformation);
|
||||
Intent intent = this.getIntent();
|
||||
Bundle bundle = intent.getExtras();
|
||||
String name = bundle.getString("reg_username");
|
||||
String passward = bundle.getString("reg_passward");
|
||||
String sex = bundle.getString("sex");
|
||||
String city = bundle.getString("city");
|
||||
TextView name_Text = (TextView) findViewById(R.id.user_name);
|
||||
TextView sex_Text = (TextView) findViewById(R.id.user_sex);
|
||||
TextView city_Text = (TextView) findViewById(R.id.user_city);
|
||||
name_Text.setText(name);
|
||||
sex_Text.setText(sex);
|
||||
city_Text.setText(city);
|
||||
Button button1=(Button) findViewById(R.id.return_login);
|
||||
button1.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Intent intent = new Intent();
|
||||
intent.setClass(userinformation.this,MainActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue