Created
March 7, 2021 13:45
-
-
Save OmarKRostom/12b8db3da407b477c3601f260d505254 to your computer and use it in GitHub Desktop.
First step creating an arc layout manager
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.omarkrostom.arclayoutmanager | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.RecyclerView | |
class ArcLayoutManager: RecyclerView.LayoutManager() { | |
override fun generateDefaultLayoutParams(): RecyclerView.LayoutParams = | |
RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment