码迷,mamicode.com
首页 > 其他好文 > 详细

......

时间:2016-06-30 21:20:42      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

   
        setContentView(R.layout.dianji_item);
        
        initdata();
        
        Intent inin = getIntent();
        Mydata    news  = (Mydata) inin.getSerializableExtra("data");


        ImageLoader.getInstance().loadImage(news.getGoods_img(), new SimpleImageLoadingListener(){
            @Override
            public void onLoadingComplete(String imageUri, View view,
                    Bitmap loadedImage) {
                // TODO Auto-generated method stub
                super.onLoadingComplete(imageUri, view, loadedImage);
                ima.setImageBitmap(loadedImage);
            }
        });
        tv1.setText(news.getGoods_name());
        tv2.setText(news.getShop_price());
    }

    private void initdata() {

        ima = (ImageView) findViewById(R.id.image01);
        tv1 = (TextView) findViewById(R.id.textView01);
        tv2 = (TextView) findViewById(R.id.shop_price01);
        
    }

}

......

标签:

原文地址:http://www.cnblogs.com/zle-mr/p/5631011.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!