Hwk4_with_solution - CST2301 Fall 2016 Prof Pinto HWK4 Citytech Student Registration Create an Android app for student registration On the initial

Hwk4_with_solution - CST2301 Fall 2016 Prof Pinto HWK4...

This preview shows page 1 - 3 out of 5 pages.

CST2301 – Fall 2016HWK4Prof. PintoCitytech Student RegistrationCreate an Android app for student registration. On the initial screen (see below) the student enters ID (numeric) and selects the level he/she is in the program: Associate or Bachelor. After clicking (tapping) the submit button, the final screen (see below) appears where the information entered on the first screen is displayed for the student. The final screen layout:
Background image
Solution (done in class on 9/13/16):A. Resources:1. strings.xml<resources> <string name="app_name">Hwk4</string> <string name="header1">Citytech Student Registration</string> <string name="idTxt">ID:</string> <string name="levelTxt">Level:</string> <string name="level1Txt">Associate</string> <string name="level2Txt">Bachelor</string> <string name="buttonTxt">Submit</string> </resources> 2. dimens.xml<resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen> <dimen name="headerDim">35sp</dimen> <dimen name="labelsDim">25sp</dimen> <dimen name="levelsDim">20sp</dimen> <dimen name="buttonDim">25sp</dimen> </resources> B. Layout: activity_registration.xml<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent"
Background image
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture