Skip to content

galemu2/Pagination-with-Pixabay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pagination-with-Pixabay

Pagination with Pixabay is a simple app that shows a list of cat images from pixabay. It used retrofit to GET impages and display result in Paged RecyclerView.

API key setup

Api Key was obtained from pixabay

  1. add gradle.properties into .gitignore file
  2. Place api key in gradle.properties file
    API_KEY="your pixabay api key"
  1. Add following line in app level build.gradle file,
android {
    ...
    defaultConfig {
    ...
        buildConfigField("String", "API_KEY", API_KEY)
    }
}
  1. Use API key within code using BuildConfig
    val API_KEY :String = BuildConfig.API_KEY

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages