Created by Saksham Agarwal / Piyush Bhopalka
manifest
java
res
All XML files are stored in res/layoutR.drawable.<image_id> - For images
R.layout.<layout_id> - For XML files
R.id.<view_id> - For Views (elements) inside a layout (XML file)
For reference,
The XML code for the contacts.xml and main_activity.xml are here.
Let's first create a new Java file that defines each contact
We call it Human.java
Code for Human.java is here
Download the images from here. Put them in the res/drawables folder.
For reference, code is available here. But we suggest you to type it out yourself atleast.
Voila! You have built your Contacts App
Your app should look something like this: