TrendingTimes

所属分类:其他
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2024-02-03 14:02:16
上 传 者sh-1993
说明:  一个从API获取新闻的新闻应用程序,它使用MVVM、房间库和依赖项注入等
(A News app which fetches news from an API, It uses MVVM, room library and dependency injection and many more)

文件列表:
.idea/
apk/
app/
gradle/wrapper/
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

# 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. ## Screenshots ![news ss10](https://github.com/adityarai004/TrendingTimes/assets/86659578/71f8ef23-cdee-4433-a941-a566680ff0c6) ![image](https://github.com/adityarai004/TrendingTimes/assets/86659578/0add7c2f-b115-4e1f-9cb3-76307273ce24) ![image](https://github.com/adityarai004/TrendingTimes/assets/86659578/fac1b12e-2cbc-4162-aefb-a69c11f4c32a) ![image](https://github.com/adityarai004/TrendingTimes/assets/86659578/152f4f7b-f08c-4a6e-b6b7-b2616152277b) ![image](https://github.com/adityarai004/TrendingTimes/assets/86659578/303040d5-80de-4600-afde-20172a07d4e8) ![news ss](https://github.com/adityarai004/TrendingTimes/assets/86659578/ebb41571-194c-4790-ab47-9de1a8ae2389) ![news ss2](https://github.com/adityarai004/TrendingTimes/assets/86659578/3a183f72-c7f8-4f47-a8a8-bb7cad19d2ab) ## 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](LICENSE). ---

近期下载者

相关文件


收藏者