Also use no predictive animations for AutofitRecyclerView
This commit is contained in:
parent
492a24ec17
commit
0fe0088ff0
@ -1,14 +1,13 @@
|
|||||||
package eu.kanade.tachiyomi.widget
|
package eu.kanade.tachiyomi.widget
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.support.v7.widget.GridLayoutManager
|
|
||||||
import android.support.v7.widget.RecyclerView
|
import android.support.v7.widget.RecyclerView
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
|
|
||||||
class AutofitRecyclerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
class AutofitRecyclerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
||||||
RecyclerView(context, attrs) {
|
RecyclerView(context, attrs) {
|
||||||
|
|
||||||
private val manager = GridLayoutManager(context, 1)
|
private val manager = NpaGridLayoutManager(context, 1)
|
||||||
|
|
||||||
private var columnWidth = -1
|
private var columnWidth = -1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user