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.
- 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.
- 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.
To run the Trending Times News App on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/adityarai004/TrendingTimes.git
- Open the project in Android Studio.
- 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.
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.
The Trending Times News App is open-source and available under the MIT License.