Android Question Loading layout into tab how to populate list

Discussion in 'Android Questions' started by SimonCarr, Aug 15, 2019 at 9:31 PM.

  1. SimonCarr

    SimonCarr Member Licensed User

    in my Main -> Activity_Create I load a layout containing a tabView

    On Tab one I load a form
    on Tab two I load a customListView

    I have created a separate activity module for my customListView, where do I add the code to automatically run and populate the list when the Main activity is started, or do I have to add a custom module and call a function from my Main -> Activity_Create method?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Not sure what do you mean with TabView. I recommend you to use TabStripViewPager.

    The code related to the CLV must be in the Main activity or in a class that is initialized from the main activity. It cannot be in a different activity module.
     
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