Android Question Reutilice designer layouts like usercontrols

Discussion in 'Android Questions' started by Jose Luis Barajas, Apr 2, 2015.

  1. Jose Luis Barajas

    Jose Luis Barajas Member Licensed User

    Hello Friends

    I am new with B4A, and I come from C #, I have seen much material forum, and I want to know if it is possible to reuse the same designed layout several times. In the .NET C# world, I can make a usercontrol and call in my Forms, etc.

    Let me explain:

    For example make a layout with multiple views and use for different data in the same activity.
    For example display all within a scrollview with a panel and call the layout, ie design once and reused several times.

  2. klaus

    klaus Expert Licensed User

    Sure, you can.
    If the layout is exactly the same, instead of loading a new layout you could change the parameters of the views according to the new data.
    If you really want to reuse the layout you must remove all 'old' views from the Panel before loading the new layout.
  3. Jose Luis Barajas

    Jose Luis Barajas Member Licensed User

    Klaus, today I will make a design with this idea, If I have problems with that, sure comeback for your support
    Thanks 1000 thanks!
  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