废话不说,直接上效果图。
这是Demo的几张截图,点击列表时,列表呈现展开效果,再次点击时收缩。
代
复制代码
而关于伸缩效果的核心代码,则在FlexLinearLayout类中,其中还有些许其他的效果展示。
不说别的了,有兴趣的朋友,自己下载源码看看吧。
源码:
FlexList.zip
这是Demo的几张截图,点击列表时,列表呈现展开效果,再次点击时收缩。
代
- 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;
- }
而关于伸缩效果的核心代码,则在FlexLinearLayout类中,其中还有些许其他的效果展示。
不说别的了,有兴趣的朋友,自己下载源码看看吧。
源码:
FlexList.zip