效果图:
点击列表时,列表呈现展开效果,再次点击时收缩。
核心代码:
public View getView(int pos, View v, ViewGroup p) {
FlexLinearLayout view = null;
if (null == v) {
view = new FlexLinearLayout(FlexListActivity.this,
contentDefileList.get(pos), pos, false);
} else {
view = (FlexLinearLayout) v;
view.setWorkTitleLayout(contentDefileList.get(pos), pos,
isCurrentItems[pos]);
}
return view;
}
源代码:
转载:http://www.adobex.com/android/source/details/00000387.htm