Reference no: EM133839179
Homework: Mobile Apps Development
Developing a Basic Android Application using Kotlin and Jetpack Compose with Multiple Activities
Purpose: The purpose of this lab homework is to:
1. Apply the basics of the Kotlin programming language.
2. Develop and implement UI components using composable functions, previews, and modifiers.
3. Design and construct complex UI layouts using Column, Row, Box, and Lists in Jetpack Compose.
4. Apply Jetpack Compose best practices to create responsive and maintainable user interfaces.
In this homework, you will develop a simple Android application using Kotlin and Jetpack Compose. The purpose is to get you familiar with the Android development environment, understand the basics of the Kotlin programming language, and learn the fundamental principles of Jetpack Compose for building UI components. You will develop a basic app with multiple activities to demonstrate your understanding of these concepts.
App Overview
You will build a basic note-taking app named "QuickNotes." The app will have the following features:
1. A home screen displaying a list of notes.
2. A screen to create a new note.
3. A screen to view and edit an existing note.
Activities and Navigation
I. Home Activity:
1. Displays a list of notes using a LazyColumn.
2. Each note item displays a title and a truncated content preview. Get the instant assignment help.
3. Includes a Floating Action Button (FAB) to navigate to the Create Note Activity.
II. Create Note Activity:
1. Contains input fields for the note title and note content.
2. Includes a save button to save the note and return to the Home Activity.
III. View/Edit Note Activity
1. Displays the selected note's title and content.
2. Allows the user to edit the note.
3. Includes a save button to save the changes and return to the Home Activity.
Jetpack Compose UI Elements
I. Home Activity:
1. Use LazyColumn for the list of notes.
2. Use Card for individual note items.
3. Use FloatingActionButton for the add note button.
II. Create Note Activity:
1. Use Column to arrange input fields vertically.
2. Use TextField for the note title and content.
3. Use Button for the save action
III. View/Edit Note Activity
1. Similar to Create Note Activity but pre-filled with existing note data.
Additional Requirements
I. App Architecture:
1. For simplicity, use a basic architecture without MVVM for this homework.
2. Create a Note data class.
3. Use basic Kotlin collections to manage the list of notes.
II. Kotlin Basics:
1. Implement basic Kotlin programming concepts such as variables, control structures, functions, and classes.
2. Use Kotlin collections to manage the list of notes.
III. Setup and Environment:
1. Ensure Android Studio is set up to use Kotlin.
2. Target Android 14 (API Level 34) or higher for your application.