brendanburns / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

Load template issue #241

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a design then click on generate 
2. load the same design from text to graphical 
3. the display is not the same as for the original.

Example with the following code: 

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    android:id="@+id/widget32"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">
<EditText
    android:id="@+id/btnlotto7"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="07"
    android:textSize="18sp"
    android:layout_alignTop="@+id/btnlotto6"
    android:layout_toRightOf="@+id/btnlotto6" />
<EditText
    android:id="@+id/btnlotto6"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="06"
    android:textSize="18sp"
    android:layout_alignTop="@+id/btnlotto5"
    android:layout_toRightOf="@+id/btnlotto5" />
<EditText
    android:id="@+id/btnlotto5"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="05"
    android:textSize="18sp"
    android:layout_alignTop="@+id/btnlotto4"
    android:layout_toRightOf="@+id/btnlotto4" />
<EditText
    android:id="@+id/btnlotto4"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="04"
    android:textSize="18sp"
    android:layout_alignTop="@+id/btnlotto3"
    android:layout_toRightOf="@+id/btnlotto3" />
<EditText
    android:id="@+id/btnlotto3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="03"
    android:textSize="18sp"
    android:layout_alignTop="@+id/btnlotto2"
    android:layout_toRightOf="@+id/btnlotto2" />
<EditText
    android:id="@+id/btnlotto2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="02"
    android:textSize="18sp"
    android:layout_alignTop="@+id/btnlotto1"
    android:layout_toRightOf="@+id/btnlotto1" />
<EditText
    android:id="@+id/btnlotto1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="01"
    android:textSize="18sp"
    android:layout_below="@+id/titleLotto"
    android:layout_alignParentLeft="true" />
<TextView
    android:id="@+id/titleLotto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Mes numeros : LOTTO"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true" />
</RelativeLayout>

What is the expected output? What do you see instead?
Please try to load the XML you will see the disaster :-) 
Expected output: 
[Title]
[buton1][buton2][buton3][buton4][buton5][buton6][buton7]
[text]
What version of the product are you using? On what operating system?
The online version [http://www.droiddraw.org/]

Please provide any additional information below.

Original issue reported on code.google.com by daxbek.j...@gmail.com on 7 Feb 2012 at 8:05

GoogleCodeExporter commented 9 years ago
screenshot - buggy layout & expected layout

Original comment by daxbek.j...@gmail.com on 7 Feb 2012 at 8:11

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by brendan....@gmail.com on 25 Feb 2012 at 9:48