首页 > 其他 > 详细

mylistview 中item的子项的布局文件xml

时间:2016-12-29 19:43:47      阅读:355      评论:0      收藏:0      [点我收藏+]
 @Override
        public View getView(final int position, View view, ViewGroup parent) {
            System.out.println("getView " + position + " " + view);
            if (view == null) {
                view = View.inflate(ct, R.layout.pageproject_item, null);
            }
            TextView nameTxv = (TextView) view.findViewById(R.id.txv_progectitem_title);
            TextView monthTxv = (TextView) view.findViewById(R.id.txv_projectitem_month);// 长度
            TextView actor = (TextView) view.findViewById(R.id.textView2);// 演播

            if (position != list.size()) {
                ResYsdw product = list.get(position);
                nameTxv.setText(product.getName());
                monthTxv.setText(String.valueOf(product.getJishu() + "集"));
                actor.setText(product.getActor());

                if (product.getImg2() != null && product.getImg2().contains("null") == false) {
                    imageUrl = product.getImg2();
                    ImageView image = BaseViewHolder.get(view, R.id.imv_userinformation_head);
                    imageLoader.DisplayImage(imageUrl, image, 0.8);
                }
            } else {
                view.getTag();
            }
            return view;

        }
    }

 view = View.inflate(ct, R.layout.pageproject_item, null);

mylistview 中item的子项的布局文件xml

原文:http://www.cnblogs.com/hoge/p/6233812.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!