📰 A Sample News App written in Java using Android Architecture Components, MVVM, etc.
buildscript {
repositories {
//add this mavenCentral()
mavenCentral()
}
dependencies {
//add this classpath to use butterknife
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.1'
}
}
dependencies {
//Extended library
//Data Binding
implementation 'android.arch.lifecycle:extensions:1.1.1'
//Gson
implementation 'com.google.code.gson:gson:2.8.6'
//ButterKnife
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
//Glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation 'com.github.bumptech.glide:annotations:4.11.0'
implementation "com.github.bumptech.glide:okhttp3-integration:4.11.0"
//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp:okhttp:2.7.2'
}
apply plugin: 'com.jakewharton.butterknife'
You need to create a News API key and add it to the strings.xml file
- 5 different language resources.
- 6 different news categories.
- News search.
- News detail.
- Open the news source URL.
- IDE: Android Studio
- API: News API
- Arthitecture: MVVM
- Programming Language: Java
- Third Party Libraries: Retrofit, Glide, ButterKnife, Gson
| Example 1 | Example 2 |
|---|---|
![]() |
![]() |
| Example 3 | Example 4 |
![]() |
![]() |



