An open API service indexing awesome lists of open source software.

https://github.com/softwarechoreographer/task-manager-app

Task Manager App: A simple Android app that displays a "task complete" icon βœ… and a "Well done!" message πŸŽ‰ when all tasks are completed. It's designed to celebrate your productivity with a motivating visual and message.
https://github.com/softwarechoreographer/task-manager-app

java kotlin

Last synced: 2 months ago
JSON representation

Task Manager App: A simple Android app that displays a "task complete" icon βœ… and a "Well done!" message πŸŽ‰ when all tasks are completed. It's designed to celebrate your productivity with a motivating visual and message.

Awesome Lists containing this project

README

        

# Task Manager App πŸ“±βœ…

A simple task management Android app built with Jetpack Compose to display a "Task Completed" screen. This app is part of a task management system where users can see a congratulatory message when all tasks are completed. πŸŽ‰

## Features ✨

- **Task Completed Screen:** Displays an image and two text messages when all tasks are completed. 🏁
- **Jetpack Compose:** UI is built using Jetpack Compose, the modern toolkit for building Android UIs. πŸ–₯️
- **Custom Theming:** Uses `Material3` theming to style the app. 🎨

## Prerequisites πŸ› οΈ

To run this project, ensure you have the following:

- Android Studio (latest version recommended) πŸ“²
- An Android device or emulator for running the app πŸ–₯️
- Kotlin 1.5 or higher πŸ¦Έβ€β™‚οΈ
- Android SDK installed πŸ› οΈ

## Project Setup πŸ—‚οΈ

1. Clone the repository to your local machine:

```bash
git clone https://github.com/softwarechoreographer/task-manager-app.git
```

2. Open the project in Android Studio. πŸ™οΈ

3. Sync the project with Gradle files by clicking on **"Sync Now"** in the top right corner.

4. Ensure your Android emulator is running or connect a physical device. πŸ“±

5. Run the app by clicking the **Run** button (green triangle) in Android Studio. ▢️

## Code Overview πŸ’»

### MainActivity 🏠

The `MainActivity` serves as the entry point for the app. It sets the content view with a `TaskManagerAppTheme` and displays the `TaskCompletedScreen`.

```kotlin
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
TaskManagerAppTheme {
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background
) {
TaskCompletedScreen()
}
}
}
}
}
```

### TaskCompletedScreen βœ…

The `TaskCompletedScreen` is a Composable function that displays a column with an image and two text elements. The text displays a message to congratulate the user for completing all tasks. πŸŽ‰

```kotlin
@Composable
fun TaskCompletedScreen() {
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = painterResource(R.drawable.ic_task_completed),
contentDescription = null
)
Text(
text = stringResource(R.string.all_task_completed),
modifier = Modifier.padding(top = 24.dp, bottom = 8.dp),
fontWeight = FontWeight.Bold,
fontSize = 24.sp
)
Text(
text = stringResource(R.string.nice_work),
fontSize = 16.sp
)
}
}
```

### TaskCompletedPreview πŸ‘€

This is a preview of the `TaskCompletedScreen` to see how it looks during development in Android Studio.

```kotlin
@Preview(showBackground = true)
@Composable
fun TaskCompletedPreview() {
TaskManagerAppTheme {
TaskCompletedScreen()
}
}
```

## Assets πŸ–ΌοΈ

- `ic_task_completed`: This image represents the completion of tasks. It can be found in the `res/drawable` directory. πŸ†

## Customizations πŸ› οΈ

- Modify the text strings in the `strings.xml` file located under `res/values/strings.xml` to change the messages displayed on the screen. πŸ“
- Replace the `ic_task_completed` image in the `res/drawable` folder with your custom image if needed. πŸ–ΌοΈ

## License πŸ“œ

This project is open source and available under the [MIT License](LICENSE).