盛洁 5 years ago
parent 0116db84a8
commit 825fde0e9e

@ -38,8 +38,8 @@ public class MainActivity extends AppCompatActivity {
Intent intent = getIntent(); Intent intent = getIntent();
User user; User user;
user = (User) intent.getSerializableExtra("user"); user = (User) intent.getSerializableExtra("user");
menu_name.setText(user.getName()); //menu_name.setText(user.getName());
menu_role.setText(user.getPasd()); //menu_role.setText(user.getPasd());
Toolbar toolbar = findViewById(R.id.toolbar); Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar); setSupportActionBar(toolbar);
FloatingActionButton fab = findViewById(R.id.fab); FloatingActionButton fab = findViewById(R.id.fab);

Loading…
Cancel
Save