diff --git a/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java b/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java index 7996ec7..134cd18 100644 --- a/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java +++ b/Listify/app/src/main/java/com/example/listify/ui/profile/ProfileFragment.java @@ -10,6 +10,8 @@ import android.view.ViewGroup; import android.view.LayoutInflater; import android.widget.Button; import android.widget.EditText; +import android.widget.TextView; + import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; @@ -30,6 +32,9 @@ public class ProfileFragment extends Fragment { public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = inflater.inflate(R.layout.fragment_profile, container, false); + TextView emailText = (TextView) root.findViewById(R.id.textViewEmail); + emailText.setText(am.getEmail()); + toDeleteAccountPage = (Button) root.findViewById(R.id.button); toDeleteAccountPage.setOnClickListener(new View.OnClickListener() { @Override diff --git a/Listify/app/src/main/res/layout/fragment_profile.xml b/Listify/app/src/main/res/layout/fragment_profile.xml index e73a8e9..a5e2fb2 100644 --- a/Listify/app/src/main/res/layout/fragment_profile.xml +++ b/Listify/app/src/main/res/layout/fragment_profile.xml @@ -17,4 +17,26 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> + + + + \ No newline at end of file