![]() |
VOOZH | about |
This is the Part 10 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 row_posts.xml file
Add a like button and total like TextView.
Below is the updated code for the row_posts.xml file.
Step 2: Working with the AdapterPosts.java file
Go to the AdapterPosts.java file and refer to the following code. Below is the updated code for the AdapterPosts.java file.
Output:
Note: Please Add drawable items before running the Application
Below is the file structure after performing these operations: