Ejemplo n.º 1
0
 @Override
 public void onClick(View v) {
   // TODO Auto-generated method stub
   Intent intent = new Intent(context, DefaultDetailActivity.class);
   intent.putExtra("title", ad.getBrand());
   intent.putExtra("content", ad.getDesc());
   intent.putExtra("imageurl", ad.getImageurl());
   intent.putExtra("linkurl", ad.getLinkurl());
   context.startActivity(intent);
 }
Ejemplo n.º 2
0
 @Override
 public Object instantiateItem(ViewGroup container, int position) {
   // TODO Auto-generated method stub
   IntegralInfo ad = ads.get(position);
   View v = LayoutInflater.from(context).inflate(R.layout.activity_integral_top_item_item, null);
   ImageView item_img = (ImageView) v.findViewById(R.id.item_img);
   imageloader.loadImage(ad.getImageurl(), item_img);
   container.addView(v);
   v.setOnClickListener(new ListenerImpl(ad));
   return v;
 }