Last active
February 21, 2016 16:17
-
-
Save pollux-/8b56b67d36ccab982dc0 to your computer and use it in GitHub Desktop.
Tag Id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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