1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question TabStrip Activities

Discussion in 'Android Questions' started by yiankos1, May 20, 2019.

  1. yiankos1

    yiankos1 Active Member Licensed User

    Hello,
    I use a TabStrip with 5 pages.

    Question 1: all code of these 5 pages should be written at Main Activity? Is there any way to use other activities, in order to be more maintainable.
    Question 2: if i fetch all data simultaneously (timeline, search, notifications, profile), i think it will cause ootd memory problem.

    What is best solution about this kind of applications;
     
  2. DonManfred

    DonManfred Expert Licensed User

  3. yiankos1

    yiankos1 Active Member Licensed User

    Attached Files:

  4. DonManfred

    DonManfred Expert Licensed User

    It does not change anything.
    A Tabstrip can only work in one actrivity.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    No. Use classes.

    Hard to believe that it will make any difference.
     
  6. yiankos1

    yiankos1 Active Member Licensed User

    So, if i use seperate activities or different tabs, its about same cost at memory?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    It depends on all kinds of things. However unless you are showing very large images or lists then it is unlikely that you will have any memory problem.
     
    yiankos1 likes this.
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