![]() |
VOOZH | about |
This is the Part 4 of "Build a Social Media App on Android Studio" tutorial, and we are going to cover the following functionalities in this article:
Step 1: Working with the fragment_profile.xml file
On this page will be the retrieving email, name, and profile picture of the user. And also we have added the Material Floating Action Button to update the data. Navigate to the app > res > layout > fragment_profile.xml and add the below code to that file. Below is the code for the fragment_profile.xml file.
Step 2: Working with the ProfileFragment.java file
Go to the ProfileFragment.java file and refer to the following code. Below is the code for the ProfileFragment.java file. Comments are added inside the code to understand the code in more detail.
Output:
Note: Please Add drawable items before running the Application
Below is the file structure after performing these operations: