Android Question CustomListView from Starter

Discussion in 'Android Questions' started by sigster, Aug 28, 2018.

  1. sigster

    sigster Active Member Licensed User

    Hi

    How can I use CustomListView in Starter
    I get error Cannot access activity object from sub Progress_global

    Code:
    For i = 1 To 20
            Cust_lisview.Add(CreateListItem(
    $"Item #${i}"$, Listv_fyrirtaki.AsView.Width, 60dip), $"Item #${i}"$)
        
    Next
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You cannot. You can only access it from the activity code or from a class initialized from an activity.
     
Loading...
  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