TonicArtos / StickyGridHeaders

This project has been superseded by SuperSLiM, a layout manager for RecyclerView. I strongly recommend using SuperSLiM and not StickyGridHeaders.
http://tonicartos.com
Apache License 2.0
1.47k stars 441 forks source link

Scroll is slower than Android's GridView #104

Closed HomHomLin closed 6 years ago

HomHomLin commented 10 years ago

I have used StickyGridHeadersGridView instead of gridview. In gridview , everything scroll smooth and fast, but in StickyGridHeadersGridView, it's not very slow but it's not smooth and fast as gridview does. It's just a bit slower.

I don't know why, I have my code in getView & getHeaderView like this:

@Override
public View getHeaderView(int position, View convertView, ViewGroup parent) {
    if(convertView == null){
        GridViewHeader item = GridViewHeader_.build(mActivity);
        convertView = item;
    }
    GridViewHeader item = (GridViewHeader)convertView;
    item.init(getItem(position).time);
    return convertView;
}
ghost commented 10 years ago

I agree. I am having performance issues as well

runningcode commented 10 years ago

I noticed this as well. I deleted the StickyGridHeadersGridView#onTouchEvent(MotionEvent ev) function and my scrolling became buttery smooth. I also didn't notice any loss of functionality but I'm not using the more advanced feature like long clicks or header click listeners.

serandel commented 10 years ago

My Picasso-powered grid items now stay blank for seconds before starting to load its images.

ghost commented 10 years ago

I use Picasso as well. Really looking for a stable solution using Picasso and sticky grid headers

serandel commented 10 years ago

I'm getting the feeling that item views are not being recycled properly, as the performance drops in direct proportion to the number of items, and items near the bottom have to wait por its images to be loaded far longer than the top ones.