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

Unable to set animations on headers #100

Closed benjosantony closed 6 years ago

benjosantony commented 10 years ago

I am unable to set animation on the headers of my gridView.

Below is the code gridView.setOnHeaderClickListener(new OnHeaderClickListener() {

        @Override
        public void onHeaderClick(AdapterView<?> arg0, View arg1, long arg2) {
            Log.d(TAG, "Header clicked ");
            Animation anim = AnimationUtils.loadAnimation(
                    AddCardsGridActivity.this, R.anim.slide_in_left);
            arg1.startAnimation(anim);

        }
    });

However there is no problem when I try to animate the grid item itself. How can I make the animation work for the headers ? or is it not possible ? Please advise.

TonicArtos commented 10 years ago

Not possible until the API 20 support library comes out of preview.

TonicArtos commented 9 years ago

This project is no longer supported and has been replaced by SuperSLiM. While SuperSLiM is still in heavy development, I already consider it much better and more stable than StickyGridHeaders. SuperSLiM also sees regular versioned releases.