Android Question Multiple screens/ layouts

Discussion in 'Android Questions' started by bogdanc, Mar 20, 2015.

  1. bogdanc

    bogdanc Active Member Licensed User

    Hi everyone :)

    I think to make an app with multiple screens.
    I know that I can use a TabHost for it but I woudl like to do this in other way.

    on load main actvity I want to make a home screen with menu for example:
    home base.png

    So on press Page 1 I want to load layout 1 for Page2 layout 2 etc...

    What is the best way to do this?

    Just add action Click to all buttons Activity.LoadLayout("Layout1")...?
    But what to do with loaded previously layout?
     
  2. eurojam

    eurojam Well-Known Member Licensed User

    I would make an activity for each page...
     
  3. bogdanc

    bogdanc Active Member Licensed User

    Could You give me an example?
     
  4. NJDude

    NJDude Expert Licensed User

    There are several tutorials on the forums and the beginner's guides, like THIS one.
     
    bogdanc and DonManfred like this.
  5. eurojam

    eurojam Well-Known Member Licensed User

    bogdanc likes this.
  6. eurojam

    eurojam Well-Known Member Licensed User

    a bit faster....;)
     
    bogdanc and DonManfred like this.
  7. klaus

    klaus Expert Licensed User

    bogdanc likes this.
  8. bogdanc

    bogdanc Active Member Licensed User

  9. NJDude

    NJDude Expert Licensed User

    If you are using the latest version of B4A, you can edit the layouts with the designer and change the "Animation duration" to zero, if after doing that you still see the effect you mentioned then it means it's your device. Each device have a different "default" animation between activities.
     
    bogdanc likes this.
  10. bogdanc

    bogdanc Active Member Licensed User

    Thank You for answer.
    Unfortunately I still have this jump effect :)

    If its of my device Can change i B4A to more friendly for eye animation?
    Like fading between of Activities?

    Thank You
     
  11. NJDude

    NJDude Expert Licensed User

    You could, but is a little tricky, read THIS post.
     
    bogdanc likes this.
  12. bogdanc

    bogdanc Active Member Licensed User

    Thanks again:)

    So this is only one way to make some animation?
     
  13. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I think that it is also possible by using custom themes although I only have limited experience using themes.
     
  14. NJDude

    NJDude Expert Licensed User

    Read THIS tutorial too.
     
    bogdanc likes this.
  15. bogdanc

    bogdanc Active Member Licensed User

    Nice tutorial:)
    Good help again:)

    Is there way to keep one label on the top screen as my status of app and keep this label on all windows without any jump effect?
    Im talking about situation when i switching between activities.
     
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