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

Android Question how to keep panel size

Discussion in 'Android Questions' started by yaniv hanya, Jul 24, 2019.

  1. yaniv hanya

    yaniv hanya Member Licensed User

    I have a particular panel that should appear on all screens. When I copy it in a designer from screen to screen it's fine but it's very cumbersome. When I tried to load it into a panel while running, it appears much bigger. Even when I tried to copy it to a designer in a clean new project it is bigger even though the values in the designer are the same. On the screens I copied from them there are no scripts so it shouldn't it stay the same size?
     
    Shelby likes this.
  2. DonManfred

    DonManfred Expert Licensed User

    Are you expecting to get congrete help with the infos (near zero) you provided?

    Create a small project which shows the issue. Upload this project; we then may be able to help.
     
  3. MarkusR

    MarkusR Well-Known Member Licensed User

    emexes likes this.
  4. yaniv hanya

    yaniv hanya Member Licensed User

    In the attached project there are two screens that should be identical, but on the second screen the controls are larger even though the designer values are identical and the dots button is all out of the screen.
    Why?
     

    Attached Files:

  5. Erel

    Erel Administrator Staff Member Licensed User

    Haven't checked your code, but I guess that it is related to AutoScaleAll in the designer script. Delete it if it doesn't do what you expect it to do.
     
  6. yaniv hanya

    yaniv hanya Member Licensed User

    It is deleted
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    Layout number 2:

    [​IMG]
     
  8. yaniv hanya

    yaniv hanya Member Licensed User

    Is that what you see when you open the zip I sent?
    Because my designer looks like that
    upload_2019-7-25_17-30-30.png
     
  9. yaniv hanya

    yaniv hanya Member Licensed User

    Sorry. Now I saw that it was open on the tab of the sub-version
     
    Erel likes this.
  10. Erel

    Erel Administrator Staff Member Licensed User

    There are two scripts in each layout: the variant specific script (don't use it) and the general script. Look in the other one.
     
  11. yaniv hanya

    yaniv hanya Member Licensed User

    Yes. That was the problem
     
  12. yaniv hanya

    yaniv hanya Member Licensed User

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