Skip to content

Simple Android application that demonstrates the use of fragments, ViewModel, LiveData, and navigation in an Android app.

Notifications You must be signed in to change notification settings

Avishka777/Fragments-Mobile-Application

Repository files navigation

Simple Android Application Fragments

Simple Android application that demonstrates the use of fragments, ViewModel, LiveData, and navigation in an Android app.

Features

  • Two fragments: HomeFragment and SettingsFragment.
  • Navigation between fragments using buttons.
  • Change background color of HomeFragment using SettingsFragment.

Installation

  1. Clone this repository to your local machine
  2. Open the project in Android Studio.
  3. Build and run the project on an Android emulator or a physical device.

Usage

  • 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.

Dependencies

This app uses the following dependencies:

  • androidx.lifecycle:lifecycle-viewmodel-ktx
  • androidx.lifecycle:lifecycle-livedata-ktx

Contributing

  • Contributions are welcome! If you find any bugs or want to add new features, please feel free to submit a pull request.

Acknowledgments

  • This project is developed as a part of a tutorial series.

About

Simple Android application that demonstrates the use of fragments, ViewModel, LiveData, and navigation in an Android app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages