# COMP5047 – Android Lab/Studio Sessions (Week 5):
# Lab 2: GUI Design and Activity and Intent Programming in Android:
Lab 2 will encompass teamwork, in which one party will create the property application’s search page GUI
(searchpage.xml), while the other party codes up the missing backend parts of the application
(PropertyApp.java, PropertyList.java, PropertyDetails.java). Both parties will need to work together to link
the GUI up to the backend code (e.g. agreeing on the ViewGroup and View widget IDs). Each party will also
need to have equal understanding of the whole completed implementation.
Part 6: Design/code a GUI layout for your property application, based on Android’s XML format and using
the Eclipse IDE. In particular, create:
searchpage.xml (TODO 01, approx. 100 lines of XML when formatted such that each attribute-value
pair is on its own line): 1 x screen, similar in functionality to that shown in the lectures, that assists
the user in selecting property search criteria. The GUI should include two radio buttons for the user
to select between buying and renting a property, as well as a button for initiating the property
search.
Note: The design of the searchpage.xml GUI is for each team to decide; it does not need to be the
same as the interface shown in the lectures (though it must have the two radio buttons and search
button). See the following website for further examples of GUI layouts:
o URL: http://developer.android.com/guide/tutorials/views/index.html
o URL: http://developer.android.com/guide/topics/ui/index.html
Part 7: Code the missing backend parts of the application to do with: connecting the XML GUI to the
program code; initiating the GUI widgets; and defining and triggering Intents and the Extras that will need to
be passed on to the called Activities. You will find the lecture notes and the following URL to the Android
SDK Reference helpful, and there are further tips and details in each of the relevant Activity class files, as
listed below:
URL: htt