Android Question Abstrat Designer Custom Layout

Discussion in 'Android Questions' started by daniedb, Jun 2, 2015.

  1. daniedb

    daniedb Active Member Licensed User

    Hi Guys
    I design a App in a standard 320x480 portrait. So I bought a Cheap 7" Tablet, to do my designs on this tablet.
    It's 1024x600 Landscape (I need the App to be landscape)
    Now if I open a Layout file in Abstarct Designer I get a error:
    Error Loading File
    Index was out of Range. Must be Non-negative and less than the size of the collection
    Parameter Name: Index.
    I haven't even Touch any design, and it coruppted about 90% of my designs with a 0 file size when exit.
    (Lucikly I have backups)
    How do I create a Custom Layout for Abstract Design for 1024x600 (16:9)

    I also tried to create a New Layout variant (Other) with this dimensions)

    Thanks
    Danie
     
  2. klaus

    klaus Expert Licensed User

    What did you do before you can't reload the layout file ?
    There is no evident reason why this happens.
    If you want the application to run in portrait on smartphones and in landscape for tablets you need two different layout variants.
    You might have a look at following chapters in the Beginner's Guide:
    5 Screen sizes and resolutions
    8 The Designer
    8.9 Designer Scripts
    8.10 Anchors
    8.11 AutoScale
     
  3. daniedb

    daniedb Active Member Licensed User

    Hi Klaus
    I've select the 7" Nexus 1280 x 800, and then see it dont worked. I've exit the Abstract Design, and Restart. When I opened again it start doing that.
    After that every Layout did that.
    I did have 2 Layout variant, which seems to work OK sofar.
    Thanks anyway, will look in the beginners guide

    Ive restart B4a,, restore backup layouts, and all seems fine now.

    Cherio
    Danie
     
  4. klaus

    klaus Expert Licensed User

    What exactly did you do ?
    And what didn't work ?

    What were these layout variants ?
     
  5. daniedb

    daniedb Active Member Licensed User

    Klaus.
    i've changed the Layout to Nexus 7" Landscape 1280 x 800
    I load my Layout file, and see that the screen size isn't correct.
    I exit the Abstract Designer and went in again.
    I created a Layout Variant of 1024 x 600
    I then loaded the layout, and that was when it gave me the error.
    Thats when I realized that the Layout size is 0 bytes
     
  6. klaus

    klaus Expert Licensed User

    Not clear.
    i've changed the Layout... When and how did change the Layout, what Layout.
    I load my file... Is this the same file or another one ?
    Could you post a small project showing the problem ?
     
Loading...