Android Question Detect Last Object Selected

Discussion in 'Android Questions' started by herryj, Feb 1, 2015.

  1. herryj

    herryj Member Licensed User

    I have an image display on a screen randomly through array and there is a button located below that can detect what image last selected .
    Can anyone give me some idea on how to do the red text above.

    Really appreciated of your advance help.
  2. derez

    derez Expert Licensed User

    Use a global imageview and assign the selected imageview to it when selection is done:
    (of course assign the number in the array to iv.tag )
    sub Global
    Dim send As ImageView
    end sub

    sub IV_click
       send = 
       selected =
    end sub
    Send will have the selected image on it.
    If you just want to know the selected number - then send can be local.
    herryj likes this.
  3. herryj

    herryj Member Licensed User

    Thank derez
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice