Android Question XUI App

Discussion in 'Android Questions' started by luke2012, May 25, 2019.

  1. luke2012

    luke2012 Well-Known Member Licensed User

    Hi All,
    I'm new to XUI (@Erel cross platform). I wish to start the development of a standalone XUI (simple) App.

    My question about it is:

    1) Is there any generale guideline to start an XUI app from scratch ?
    2) Is there a way using XUI to minimize the platform specific code for a simple standalone app?

    Thank you in advance for your help :)
  2. MarkusR

    MarkusR Well-Known Member Licensed User

    there are 2 learning videos about XUI

    simple explained xui is a replacement for accessing the native ui at different supported platforms.
    if u see a library with B4X then it support more than one platform.

    if you have more than one project you can share your class files.

    xui or multi platform development have pros and cons, you will see.
    Last edited: May 25, 2019
  3. klaus

    klaus Expert Licensed User

    You may have a look at the B4X XUI Booklet.

    Be aware that you need one project for each platform.
    Use as much as possible B4X Views which are wrappers above the original views.
    You need the XUI libraries which are shiped with the products.
    Use XUI Views, these are in the XUI Views B4XLibrary.
    As already said, you can share modules between the projects, one file in one project and the other projects point to this file.

    One cons, you may loose some platform specific views.
    iOS and Android users may expect different interface layouts.
    Johan Hormaza and jimmyF like this.
  4. Erel

    Erel Administrator Staff Member Licensed User

    Truth is that there is no such thing as a XUI app. XUI is just a thin layer above the native views (and some other stuff) that provides cross platform APIs. Use XUI APIs when you can and use platform specific code when it is needed.
    MarkusR likes this.
  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