This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PagingSource | |
private const val MOVIES_STARTING_PAGE_INDEX = 1 | |
class MoviesPagingSource( | |
private val apiHelper: ApiHelper | |
) : RxPagingSource<Int, ResultsItem>() { | |
override fun loadSingle(params: LoadParams<Int>): Single<LoadResult<Int, ResultsItem>> { | |
val position = params.key ?: MOVIES_STARTING_PAGE_INDEX | |
Log.d("POSITION", position.toString()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.module.footballclub | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.support.v7.widget.LinearLayoutManager | |
import android.support.v7.widget.RecyclerView | |
import android.view.View | |
import android.widget.FrameLayout | |
import android.widget.ListAdapter | |
import com.module.footballclub.adapter.AdapterFootballClub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package au.id.alexn; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.ScaleGestureDetector; | |
import android.view.View; | |
import android.widget.FrameLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorokin Mbak nila huuuuuuu.. | |
mana orang tuh yang lagi baca... :p | |
kasian delloo.... :p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App extends Application{ | |
private static Context context; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
context = getApplicationContext(); | |
} | |