You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ProfileSetupFragment = screen to set up all REQUIRED user information before can start buddying! PIN #, profile picture, and Trusted Contacts
EditTrustedContactsFragment = separate screen linked from ProfileSetupFragment for the user to set up multiple Trusted contacts.
**Note: Lots of sample code is already written on similar Fragments to display how the interface, StartActivity, and fragments work together, it should help you get started! Also, a ton of this is much more intricate to implement than the other issues, so don't feel pressured to finish everything if you don't have the time for it!
Following the wireframes on README, create layout.xml files and implement Fragments for: "Profile Setup Screen" and "Edit Trusted Contacts Screen"
ProfileSetupFragment{ }:
invoked by either LoginFragment - when user registered AND logged in, but not yet setup profile
or by RegisterTwoFragment - when user just registered official account in Parse database
Expect to receive the User object we are creating! (B/c we are still building the profile of a to-be-created and not logged in user)
Creates a TrustedContact object and uses TrustedContact's setter method to POST request with the Parse database! (must wait for Parse and java models to be done by another issue)
Each TrustedContact is inputted into the User's trustedContact's list!
create instance of SAFragmentsListener and connect to StartActivity in the same way{ }
e.g. private SAFragmentsListener SAListener;
SAListener = (SAFragmentsListener) context;
Max of 5 Trusted Contacts
RecyclerView and Adapter used (to display a Trusted Contact in a format on every row):
Every RecyclerView row/Adapter .xml displays Trusted Contact’s:
First name
last name
Relationship to user
mobile phone number
email
Displays the current Trusted Contacts if any
On long click (or whatever you prefer to edit a row):
Opens Dialog box to edit the current contact or delete it entirely
NOTE: Dialog Box is essentially a little pop up form or message that can take a small number of user inputs and act on it. It shouldn't be extremely hard to implement
If user has room to add more (e.g. current # of Trusted Contacts < 5)
Display a “+” or “add" button:
On click → display a different .xml on that row with empty containers to enter the needed info
Otherwise display message that user at the max Trusted Contacts allowed
on click back button or on click "save" button (wasn't included on the wireframe!)
call SAListener.toProfileSetup(User object);
For extra help on connections between interfaces, activities, and fragments:
You can see the example of how @jmnguyen1999 did her "Snapagram" this way with an in-class interface, under StartActivity.java and the StartActivity packaged Fragments!
The text was updated successfully, but these errors were encountered:
jmnguyen1999
changed the title
Creating last screens needed for Registering an account & Creating Profile Screen
Creating last screens needed for Account Creation: ProileSetupFragment{ } and EditTrustedContactsFragment{ }
Apr 10, 2021
nhinguyen015
changed the title
Creating last screens needed for Account Creation: ProileSetupFragment{ } and EditTrustedContactsFragment{ }
Creating last screens needed for Account Creation: ProfileSetupFragment{ } and EditTrustedContactsFragment{ }
Apr 10, 2021
ProfileSetupFragment = screen to set up all REQUIRED user information before can start buddying! PIN #, profile picture, and Trusted Contacts
EditTrustedContactsFragment = separate screen linked from ProfileSetupFragment for the user to set up multiple Trusted contacts.
**Note: Lots of sample code is already written on similar Fragments to display how the interface, StartActivity, and fragments work together, it should help you get started! Also, a ton of this is much more intricate to implement than the other issues, so don't feel pressured to finish everything if you don't have the time for it!
Following the wireframes on README, create layout.xml files and implement Fragments for: "Profile Setup Screen" and "Edit Trusted Contacts Screen"
ProfileSetupFragment{ }:
private SAFragmentsListener SAListener;
SAListener = (SAFragmentsListener) context;
SAListener.toEditTrustedContacts(User object);
SAListener.toLoginFragment();
profileSetUp = true;
if(ParseUser.getCurrentUser() == null)
EditTrustedContactsFragment{ }:
private SAFragmentsListener SAListener;
SAListener = (SAFragmentsListener) context;
SAListener.toProfileSetup(User object);
For extra help on connections between interfaces, activities, and fragments:
The text was updated successfully, but these errors were encountered: