Simple Android application that demonstrates the use of fragments, ViewModel, LiveData, and navigation in an Android app.
- Two fragments: HomeFragment and SettingsFragment.
- Navigation between fragments using buttons.
- Change background color of HomeFragment using SettingsFragment.
- Clone this repository to your local machine
- Open the project in Android Studio.
- Build and run the project on an Android emulator or a physical device.
- Click on the "Home" button to navigate to the HomeFragment.
- Click on the "Settings" button to navigate to the SettingsFragment.
- In the SettingsFragment, select a background color from the dropdown menu and click "Save" to apply the changes to the HomeFragment background.
This app uses the following dependencies:
- androidx.lifecycle:lifecycle-viewmodel-ktx
- androidx.lifecycle:lifecycle-livedata-ktx
- Contributions are welcome! If you find any bugs or want to add new features, please feel free to submit a pull request.
- This project is developed as a part of a tutorial series.