Gank.io, a haven for developers offering a rich assortment of resources ranging from articles to videos, now has a dedicated Android client, aptly named 'Flipgank'. Masterminded by the adept yiyuanliu and penned in the expressive Kotlin language, the project, under the liberal Apache 2.0 license, promises to redefine how developers interact with Gank.io on Android.
Highlighting Features:
- Access to a broad spectrum of resources: articles, images, videos.
- Dive into multifaceted categorizations and sorting mechanisms.
- Additional goodies include offline downloading and a sleek night mode.
Kickstarting with Flipgank:
To embark on this journey, start by including the library:
dependencies {
implementation 'com.github.yiyuanliu:flipgank:1.0.0'
}
Crafting a 'Flipgank' application is a straightforward endeavor. Here's a glimpse:
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val flipgank = Flipgank(this)
flipgank.getArticles(object : Flipgank.OnArticlesListener {
override fun onArticlesLoaded(articles: List<Article>) {
// Delve into the articles here
}
})
}
}
Why Flipgank Shines:
- Comprehensive access to Gank.io's resources.
- Varied categorizations and sorting for fine-tuned experiences.
- Feature-rich with offline access and an ambient night mode.
Areas Awaiting Polish:
- A budding community awaits wider participation.
- Documentation has room for expansion.
Taste of 'Flipgank' in Action:
Fetching a List of Articles:
val flipgank = Flipgank(this)
flipgank.getArticles(object : Flipgank.OnArticlesListener {
override fun onArticlesLoaded(articles: List<Article>) {
articles.forEach {
println(it.title)
}
}
})
Scouring for Images:
val flipgank = Flipgank(this)
flipgank.getImages(object : Flipgank.OnImagesListener {
override fun onImagesLoaded(images: List<Image>) {
images.forEach {
println(it.url)
}
}
})
(Unfortunately, the video-fetching example is not complete. We hope to provide a full tutorial on this in the near future.)