05 2015 档案
viewholder
摘要:viewholder的作用是减少findViewById的调用,将控件的引用存入,通过steTag()来调用。首先判断convertView有没有内容,没有就定义一个ViewHolder对象,将布局存入ViewHolder中,通过convertView.setTag(ViewHolder对象)调用。... 阅读全文
posted @ 2015-05-04 09:53 2B欢乐多 阅读(85) 评论(0) 推荐(0)
fragment生命周期
摘要:fragment的生命周期通过以下顺序:onAttach(),onCreate(),onCreateView(),onActivityCreated(),onStart(),onResume(),onPause(),onStop(),onDestoryView(),onDestory(),onDet... 阅读全文
posted @ 2015-05-04 09:53 2B欢乐多 阅读(224) 评论(0) 推荐(0)