我想让我的ExpandableListView的孩子出现一个动画。 由于我使用的是Android 2.2的API,我不能使用expandGroup(INT groupPos,布尔动画)方法动画ExpandableListView 2.2上的孩子
我使用的是动画我从这里得到:Android animate drop down/up view proper
和我“M我ExpandableListView适配器的getChildView方法像这样将其设置为我convertView:
public View getChildView(int groupPosition, int childPosition, boolean isLastChild,
View convertView, ViewGroup parent) {
...
ExpandCollapseAnimation animation = new ExpandCollapseAnimation(convertView, 500, 0);
convertView.setAnimation(animation);
return convertView;
}
当我点击ExpandableListView的集团,首先它显示了所有孩子的,没有动画,然后马上就展开所有孩子都喜欢动画NT。
我需要它来显示动画。 任何帮助都会非常棒。
对不起,但Java与它无关。而“一行接一行”的说法是一个非常简单的计算机体系结构。 – AngraX 2012-12-04 03:56:27