This Android app is a feature-rich student dashboard built with Kotlin. It helps users toggle a light bulb ON/OFF, manage student information, and keep track of tasks via an interactive to-do list. The app is designed with a modern, user-friendly interface and demonstrates key Android and Kotlin concepts, making it ideal for beginners.
- Switch a light bulb image ON and OFF using a
SwitchCompattoggle. - Real-time visual update between
on_bulbandoff_bulbimages.
- Enter Student ID, School Name, and Class.
- Select a subject from a dropdown spinner.
- Review entered information on a summary page before final submission.
- Add, check off, and delete tasks with a Floating Action Button (FAB).
- Swipe left to delete any task.
- Task state (checked/unchecked) is visually updated.
- Email and password login screen with "Remember Me" option.
- Secure login state saved with SharedPreferences.
- Logout button clears login state.
- Clean splash screen on startup with automatic navigation based on login state.
-
Clone the repository
git clone https://github.com/MohsinMuzamil/My-First-App.git
-
Open in Android Studio
- Open the project folder in Android Studio.
-
Build & Run
- Connect your device or start an emulator, then run the app.
DashboardActivity.kt– Main dashboard for student info and bulb toggle.MainActivity.kt– Login logic.SplashActivity.kt– App splash and auto-login handling.SubmitActivity.kt– Displays student info summary and submission.ToDo_List.kt– To-do list logic.TaskAdapter.kt,Task.kt,SwipeToDeleteCallback.kt– To-do list backend.res/layout/– All XML layouts for activities and custom views.
- toggle-switches
- todolist
- login-system
- student-managed
- image-updates
- Android Studio (latest recommended)
- Kotlin
- Min SDK as defined in
build.gradle - Material Components (for text fields and FAB)
-
Login Screen:
Enter your email and password. If "Remember Me" is checked, you’ll stay logged in on next launch. -
Dashboard:
- Toggle the light bulb.
- Fill in student details and select a subject.
- Tap "Next" to review your info.
-
Submit Info:
Review details and submit. On submission, you’re redirected to the To-Do List. -
To-Do List:
- Add new tasks with the orange FAB.
- Swipe left to delete a task.
- Check tasks as you complete them.
Pull requests and issues are welcome! Please follow best Android/Kotlin practices.
MIT License
Designed and maintained by Mohsin Muzamil.
