Closed ghost closed 6 years ago
@Override
public long getHeaderId(int i) {
return set_headerId(i);
}
You need to return different header id for your each header I'm trying to do date filter for headers i hope this helps.
public int set_headerId(int position){
int Id = 0;
int year = Integer.parseInt(arrayListForAdapterSpending.get(position).getDate().substring(0,4));
Log.d("Date"," = " + arrayListForAdapterSpending.get(position).getDate());
Log.d("Year"," = " + arrayListForAdapterSpending.get(position).getDate().substring(0,4));
Log.d("Month"," = " + arrayListForAdapterSpending.get(position).getDate().substring(5,6));
Id = year + getHighNumberMonth(position);
Log.d("Last","Id = " + Id);
return Id;
}
Hi,
How would I go to implement a Filter in my StickyGridHeader, as I have both views and headerviews? Any sample code would be appreciated,
Thanks!