Skip to content

Instantly share code, notes, and snippets.

View preetham1316's full-sized avatar

Preetham Ivan Dsouza preetham1316

  • Mangalore
View GitHub Profile
@preetham1316
preetham1316 / HomeFragment.kt
Created August 4, 2023 05:50
Sticky Header with Click Listeners for Recycler View
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.stickyheader.databinding.FragmentHomeListBinding
import com.example.stickyheader.header.StickyHeaderItemDecorator
import com.example.stickyheader.model.ItemModel