public void OnAnimationEnd(Animation animation) { //try //{ if (_state == STATE_EXPANDING) { _parent.stopAnimation(_groupPostion); _parent.NotifyDataSetChanged(); _dummyView.Tag = STATE_IDLE; } if (_state == STATE_COLLAPSING) { _parent.stopAnimation(_groupPostion); _listView.CollapseGroup(_groupPostion); _parent.NotifyDataSetChanged(); _info.dummyHeight = -1; _dummyView.Tag = STATE_IDLE; } _dummyView.SetLayerType(layertype, null); _dummyView.RequestLayout(); //} //catch (System.Exception ex) //{ // string s = ex.Message; //} //if (_listView.OnAnimationEnd != null) // _listView.OnAnimationEnd(); if (OnListViewAnimationEnd != null) { OnListViewAnimationEnd(); } }
public void OnAnimationEnd(Animation animation) { if (info.expanding && state != AnimatedExpandableListAdapter.STATE_EXPANDING) { adaptor.StopAnimation(groupPosition); adaptor.NotifyDataSetChanged(); dummyView.Tag = AnimatedExpandableListAdapter.STATE_IDLE; } else if (!info.expanding && state != AnimatedExpandableListAdapter.STATE_COLLAPSING) { adaptor.StopAnimation(groupPosition); listView.CollapseGroup(groupPosition); adaptor.NotifyDataSetChanged(); info.dummyHeight = -1; dummyView.Tag = AnimatedExpandableListAdapter.STATE_IDLE; } }