-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
# Conflicts: # Disaster-Response-Platform/mobile/DisasterResponsePlatform/app/build.gradle
@@ -0,0 +1,6 @@ | |||
package com.example.disasterresponseplatform.models |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this 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!
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