Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mo/feature/profile page UI #375

Merged
merged 6 commits into from
Oct 23, 2023
Merged

Mo/feature/profile page UI #375

merged 6 commits into from
Oct 23, 2023

Conversation

cahidenes
Copy link
Contributor

Implemented profile page UI. There are many fields that can possibly be present in the UI. To see different cases, I hardcoded 3 temporary users. When the profile page opens up, a random user is picked. So close and open the page a few times to see 3 different users.

I also added an edit button. Depending on which person this profile has (me or someone else) this button can be hidden. It's the same for the call button as well.

I entered my phone number, so if you press the call button you will call me.

Thiss PR solves issues #335 and #373

# Conflicts:
#	Disaster-Response-Platform/mobile/DisasterResponsePlatform/app/build.gradle
@@ -0,0 +1,6 @@
package com.example.disasterresponseplatform.models
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move this package under the data -> models -> user types ( you can create this package ) to continue our package design


var counter = 0;
for (socialMedia in user.socialMedia) {
val newView: View = LayoutInflater.from(requireContext()).inflate(R.layout.profile_item, null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use binding in here like:
val navViewBinding: ProfileItemBinding = ProfileItemBinding.inflate(LayoutInflater.from(requireContext()))
After that you can easily access binding objects like:
navViewBinding.profileItemText.text instead of newView.findViewById(R.id.profile_item_text).text

Copy link
Contributor

@egecans egecans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am really impressed with your profile design and example profiles 😂. Great Job!

@egecans egecans merged commit a86e657 into main Oct 23, 2023
This was referenced Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants