Android Question question about imageview

Discussion in 'Android Questions' started by tufanv, Jul 2, 2015.

  1. tufanv

    tufanv Expert Licensed User


    I am using

    dim img(16) as imageview in my code module. But when i initialize all these imageviews from the code module how can i also see them on visual designer ? I have to use as img(16) but i also want to see them on deisgner ?

    Is there any way to do it ?
  2. Cableguy

    Cableguy Expert Licensed User

    The only way to do it is to add them in the designer and then "duplicate" them in an array.

    Dim imgarray(15)
    Dim i as int = 0
    for each v as imageview in activity
    Imgarray(i) = v
    i = i + 1
    lemonisdead, JordiCP and walterf25 like this.
  3. tufanv

    tufanv Expert Licensed User

    Thank you !

    I also want to add this to my b4i app but only problem is it does not use activity . I replaced it with page1 but that gives an error : object converted to string

    any idea about that or do i have to ask it in b4i forum =)
  4. Cableguy

    Cableguy Expert Licensed User

    There are a few diferences between b4a and b4i... I never used b4i but I guess it's a "view" object issue... In any case it should work with the image views parent
    tufanv likes this.
  5. tufanv

    tufanv Expert Licensed User

    Thank You !
  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