CSE2MAD Exam Prep Questions – Part 2 Q1. Given the following XML that defines an activity’s layout, draw its final form as it would appear on the designer/device. [10 marks] xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="LifeForm:" tools:text="Lifeform" /> android:id="@+id/editText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:ems="10" android:hint="Life Form to Send" android:inputType="textPersonName" /> Draw the rendered layout. Q2. You have been asked to design an interface for a tourism app that is used to show points of interest on a live map (used for in-car navigation). The intent is to have visitors following a self-guided tour of the city with the emphasis on locating points of interest and making sure they can navigate there safely. The phone/tablet would ideally be mounted on the dashboard of the car. Given this unique usage context, your aim is to sketch via a wireframe an appropriate user interface taking into account interaction design for the user. [15 marks] 欢迎咨询51作业君