Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View FavoRiteKK's full-sized avatar
🎯
Focusing & It's Okay to be failure

Kevin Fav FavoRiteKK

🎯
Focusing & It's Okay to be failure
View GitHub Profile
@FavoRiteKK
FavoRiteKK / logMemberProps.kt
Last active October 27, 2021 15:14
Print a declarative string of given object.
@Test
fun testSoSo() {
val car = Car("me.car\ndmsklam", Engine("me.engine"), Wheel("me.wheel"))
println(printlnStr(car))
//OUTPUT:
// Car(
// engine = Engine(
// name = "me.engine"
// ),
// name = "me.car\ndmsklam",
@FavoRiteKK
FavoRiteKK / EndlessRecyclerScrollListener
Created October 27, 2017 04:55
[Android] Endless load more for RecyclerView
package com.estate.mrnx.tb.custom.refresharticle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
public abstract class EndlessRecyclerScrollListener extends RecyclerView.OnScrollListener {
// The minimum amount of items to have below your current scroll position
// before loading more.