CSCI 4176 & 5708 Lab Assignment 02

$30.00

Download Details:

  • Name: Lab-Assignment-2-8xddpi.zip
  • Type: zip
  • Size: 360.02 KB

Category:

Description

Rate this product

A2 is about Single Activity applications with fragments and navigation. Your goal is to create an app that has two Fragments (three if you count the nav holder) as per the example below: The first fragment (home/start) contains a hello message, a password box, and a button. Once pressed, the application must switch to the second fragment. See: https://developer.android.com/guide/navigation/ The second fragment receives the “password” or secret from the first fragment and displays it in plain text. This fragment also contains a button to return to the previous fragment. The user should be able to perform this operation as many times as they want. If the user inputs no secret, the message on F2 should be “The secret was: no secret.” There are multiple ways to pass information between fragments: Bundles, Companion Objects, ViewModels, SafeArgs, etc. Please take some time to investigate the different methods and their advantages/disadvantages. Some examples: https://developer.android.com/guide/navigation/navigation-pass-data The starter code is as barebone as you can expect. Do not use another app template from Android Studio. Use A2 to understand how to set up fragments and the navigation component. Please note that there is no Navigation Top Bar in this assignment.