void onItemClick(int pos);
}
public void setOnItemClickListener(OnItemClickListener listener) {
this.listener = listener;
}
((HolderTwo) holder).lineartwo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
listener.onItemClick(position);
}
});
adapter.setOnItemClickListener(new MyAdapter.OnItemClickListener() {
@Override
public void onItemClick(int pos) {
Intent intent=new Intent(MainActivity.this,InFoActivity.class);
intent.putExtra("qwe",beans.get(pos).getGmall_product().getTitle());
intent.putExtra("aaa",beans.get(pos).getGmall_product().getPic_url());
startActivity(intent);
}
});
Intent intent1 = getIntent();
aaaimg1 = intent1.getStringExtra("aaa");
String qwetitle = intent1.getStringExtra("qwe");
Picasso.with(InFoActivity.this).load(aaaimg1).into(image);
tv.setText(qwetitle);