News Reader presents current headlines in a lightweight Android interface. A tabbed ViewPager separates the feed into home, science, health, sports, and entertainment sections; Retrofit retrieves articles, Glide handles remote images, and an in-app WebView opens the complete story.
| Experience | Implementation |
|---|---|
| Top headlines | NewsAPI top-headlines requests through Retrofit |
| Category browsing | Dedicated fragments for five news sections |
| Article cards | RecyclerView adapter with image loading through Glide |
| Full story | In-app WebView navigation to the publisher URL |
| Navigation | Material tabs synchronized with ViewPager |
NewsAPI
↓ Retrofit + Gson
Category fragments
↓
RecyclerView article feed
↓
In-app article WebView
- Android Studio with an Android SDK compatible with compile SDK 30
- A free NewsAPI API key
-
Clone the repository:
git clone https://github.com/rahultripathi17/news-reader-android.git
-
Add your API key to the untracked
local.propertiesfile:NEWS_API_KEY=your_newsapi_key -
Open the project in Android Studio, sync Gradle, and run the
appconfiguration.
The API key is injected into BuildConfig during the build and is not stored in the repository.
app/src/main/
├── java/com/yournews/app/ # activities, fragments, models and API client
├── res/layout/ # screens and article-card layouts
└── AndroidManifest.xml
Built by Rahul Tripathi · Portfolio · LinkedIn