Skip to content

A News app which fetches news from an API, It uses MVVM, room library and dependency injection and many more

Notifications You must be signed in to change notification settings

adityarai004/TrendingTimes

Repository files navigation

Trending Times News App

Trending Times is a news app that allows users to stay updated with the latest news from various categories such as Top Headlines, Technology, Sports, Science, Health, Entertainment, Education, Business, and Opinion. The app fetches news data from a remote API, stores it in a local Room database, and provides a smooth user experience with features like dark mode and pagination.

Features

  • Fetching news data from a remote API using Retrofit and Kotlin Coroutines.
  • Storing news articles in a local Room database for offline access.
  • Displaying news articles in a RecyclerView with a custom adapter.
  • Supporting multiple news categories, allowing users to browse specific topics.
  • Implementing dark mode and light mode for a customizable user experience.
  • Handling internet connectivity to prevent app crashes in case of no internet.

Screen Recordings

Screenshots

Libraries Used

  • Retrofit: For making network requests and fetching news data from the API.
  • Room: For local data storage and managing news articles in the database.
  • ViewModel and LiveData: For implementing the MVVM architecture and handling data changes.
  • Dagger Hilt: For dependency injection and managing app components.
  • ViewPager2: For swiping between different news categories.
  • RecyclerView: For displaying a list of news articles in each category.
  • CardView: For a visually appealing card layout for news articles.
  • AppCompat: For backward compatibility and supporting different versions of Android.
  • Kotlin Coroutines: For handling asynchronous tasks and data loading.

Getting Started

To run the Trending Times News App on your local machine, follow these steps:

  1. Clone the repository: git clone https://github.com/adityarai004/TrendingTimes.git
  2. Open the project in Android Studio.
  3. Build and run the app on an emulator or physical device.

Make sure you have an active internet connection to fetch the latest news data from the API.

Contributing

Contributions to the Trending Times News App are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

License

The Trending Times News App is open-source and available under the MIT License.


About

A News app which fetches news from an API, It uses MVVM, room library and dependency injection and many more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages