RepositoryKotlin
AB

abhinav272/NewsApp

A Sample News App written in Kotlin using Android Architecture Components, MVVM

186sao
59fork
2issue
0lượt xem

📰 NewsApp: Mẫu tin tức MVVM bằng Kotlin với hỗ trợ ngoại tuyến

Một ứng dụng tin tức mẫu minh họa cách dùng Android Architecture Components với Kotlin.

NewsApp là một dự án mẫu được viết bằng Kotlin, sử dụng NewsAPI để lấy nguồn tin và tiêu đề tin tức. Dự án này được xây dựng theo mô hình MVVM, áp dụng Retrofit 2 để gọi API và Room Persistence Library để lưu trữ dữ liệu cục bộ, hỗ trợ hiển thị dữ liệu ngay cả khi không có kết nối mạng.

✨ Điểm nổi bật

  • Retrofit 2: Gọi API lấy danh sách nguồn tin và tiêu đề từ NewsAPI
  • Room Persistence Library: Lưu trữ dữ liệu cục bộ hỗ trợ chế độ ngoại tuyến
  • LiveData: Theo dõi thay đổi dữ liệu và cập nhật giao diện tự động
  • ViewModel: Tách logic dữ liệu khỏi giao diện người dùng
  • Repository: Nguồn dữ liệu duy nhất, kiểm tra tuổi dữ liệu và đồng bộ API
  • RecyclerView: Hiển thị danh sách tin tức theo dạng lưới hoặc danh sách
  • Offline-first: Tải dữ liệu từ DB trước, chỉ gọi API nếu dữ liệu rỗng hoặc hết hạn

💡 Vì sao đáng chú ý

NewsApp không chỉ là một ứng dụng tin tức đơn thuần mà còn là tài liệu tham khảo rất tốt về cách triển khai kiến trúc MVVM trên Android bằng Kotlin. Với cách tiếp cận Repository làm nguồn dữ liệu trung tâm, dự án giúp người phát triển hiểu rõ cách quản lý dữ liệu và vòng đời ứng dụng một cách hiệu quả.


#Kotlin #Android #MVVM #NewsAPI #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryKotlin
PatilShreyas/Foodium

🍲Foodium is a sample food blog Android application 📱 built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger 2/Hilt, Architecture Components, MVVM, Room, Retrofit, Moshi, Material Components).

2.3k
Mar 20, 2026
RepositoryKotlin
Quyunshuo/AndroidBaseFrameMVVM

基于 Jetpack + Kotlin 的 Android 组件化 MVVM 框架

1.3k
Sep 23, 2023
RepositoryKotlin
square/leakcanary

A memory leak detection library for Android.

30.0k
Nov 26, 2026
RepositoryKotlin
Heapy/awesome-kotlin

A curated list of awesome Kotlin related stuff Inspired by awesome-java.

11.4k
Nov 29, 2026
RepositoryKotlin
AkshayChordiya/News

A sample News 🗞 app built using Modern Android Development [Architecture Components, Coroutines, Retrofit, Room, Kotlin, Dagger]

845
Nov 3, 2020
RepositoryKotlin
mayokunadeniyi/Instant-Weather

An Android weather application implemented using the MVVM pattern, Retrofit2, Dagger Hilt, LiveData, ViewModel, Coroutines, Room, Navigation Components, Data Binding and some other libraries from the Android Jetpack.

761
Jul 11, 2026
RepositoryKotlin
ferPrieto/SpaceX-prepare-for-Clean-Architecture-liftoff

Feature-first Clean Architecture Android Project

752
Dec 28, 2025
RepositoryKotlin
ZahraHeydari/Android-Clean-Architecture-MVVM-Hilt-RX

Implemented by Clean Architecture, Hilt, MVVM, LiveData, RX, Retrofit2, Room, Anko

447
Jul 27, 2023
RepositoryKotlin
jenly1314/MVVMFrame

🏰 MVVMFrame 是一个基于Google官方推出的JetPack构建的快速开发框架。从此构建一个MVVM模式的项目变得快捷简单。

415
Sep 18, 2026