17.07.2015 Views

OCTranspoLive: A live OCTranspo GPS bus location application for ...

OCTranspoLive: A live OCTranspo GPS bus location application for ...

OCTranspoLive: A live OCTranspo GPS bus location application for ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This Activity class extends ListActivity and implements the list selection listeners.The ArrayAdapter class called MainMenuArrayAdapter provides the list adapter<strong>for</strong> the MainViewActivity class. The rows in MainMenuArrayAdapter use a layoutspecifying a LinearLayout composed of an ImageView on the left side followed by aTextView. I found the default look of rows in a ListView to not be visually appealingso I opted to create a custom drawable to use <strong>for</strong> the rows.rowView . setBackgroundResource (R. drawable . customshape ) ;This gives the list items in MainViewActivity the attractive rounded corners thatcan be seen in Figure 2. One of my goals <strong>for</strong> this project was to make the userinterface as simple and visually appealing as possible. I believe providing the userwith only a few clearly seperated options in the main menu achieves the simplicityand usability I had in mind.Figure 2: Main menu15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!