luajoy / droiddraw

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

Layout weight in LinearLayout does not work #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Try to create 2 EditTexts in a horizontal LinearLayout so that each occupies 
50% of the screen width as in the code:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/LinearLayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
     >
        <EditText
            android:id="@+id/item1"      
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"             
            android:layout_weight="0.5"
        />
        <EditText
            android:id="@+id/item2"      
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"             
            android:layout_weight="0.5"
        />    
    </LinearLayout>  

What is the expected output? What do you see instead?

The code above should produce 2 identical EditTexts one next to the other.
Instead - only one is visible, expanded 100% width and the other is not 
selectable, it is outside of the screen.

What version of the product are you using? On what operating system?
Online version as on December 28th, 2010

Please provide any additional information below.

How to update both EditTexts simultaneously?

Original issue reported on code.google.com by yar...@gmail.com on 28 Dec 2010 at 8:04

GoogleCodeExporter commented 9 years ago
Accepted, DroidDraw currently only handles weight = "1"

Original comment by brendan....@gmail.com on 24 Jan 2011 at 4:39

GoogleCodeExporter commented 9 years ago
DroidDraw now supports arbitrary weights and the weightSum attribute.

Original comment by brendan....@gmail.com on 1 Jan 2012 at 10:59

GoogleCodeExporter commented 9 years ago
Fixed in SVN targeted for r1b21

Original comment by brendan....@gmail.com on 1 Jan 2012 at 10:59