I’ve got something like this:
view = gridView.getChildAt(position)
All elements in gridView are drawables stored in drawable folder
Now my question:
How to pass view to imageView or how to get resourceId from view?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This tutorial should have everything you need, the only difference is, that you need to pass in the item at
gridView.getChildAt(position)rather then all the items in the gridView as in this tutorialyou would want to do something like
but without seeing your code i cannot put up the correct answer, but looking at the tutorial that i have added, you would add code like above to get want you want