ebarrenechea / header-decor

A couple of sticky header decorations for android's recycler view.
Apache License 2.0
878 stars 159 forks source link

set random positions for headers #25

Closed mhemdan closed 9 years ago

mhemdan commented 9 years ago

how to set different positions for headers like set one header at position 10 and the second one on 13 and so on ? thanks

maiconpeixinho commented 8 years ago

Hey man .. how do you did this? Can you help me please?

mhemdan commented 8 years ago

Here is my adapter code which is wrapped with the sticky Decor hope it helps

`import android.content.Context; import android.content.Intent; import android.net.Uri; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView;

import java.util.ArrayList;

import ca.barrenechea.widget.recyclerview.decoration.StickyHeaderAdapter;

/**

}`