Skip to content

Instantly share code, notes, and snippets.

@pollux-
Last active February 21, 2016 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pollux-/8b56b67d36ccab982dc0 to your computer and use it in GitHub Desktop.
Save pollux-/8b56b67d36ccab982dc0 to your computer and use it in GitHub Desktop.
Tag Id
//TODO: First Tag Id to ImageView
imageview.setImageBitmap(
decodeSampledBitmapFromResource(getResources(), R.drawable.adnuentrancecrop, 350, 100));
imageview.setTag(R.drawable.adnuentrancecrop);
//TODO: Onclick you can extract the ID
imageview.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View v) {
// The issue is now resolved
//
Intent intent = new Intent(LocationSelect.this, CardboardViewer.class);
intent.putExtra("passImage", (Integer) v.getTag());
startActivity(intent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment