wangji0937 / droiddraw

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

Image Button Generation Error #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

1. Add an ImageButton
2. Set the layout_width to any integer
3. Apply, and Generate

The generated code lacks a "px" after the integer

Example:

<ImageButton
android:id="@+id/trunk"
android:layout_width="125"
android:layout_height="125"
android:layout_x="30px"
android:layout_y="172px"
> 

Where it should be:

<ImageButton
android:id="@+id/trunk"
android:layout_width="125px"
android:layout_height="125px"
android:layout_x="30px"
android:layout_y="172px"
>

Original issue reported on code.google.com by jim.galb...@gmail.com on 18 Dec 2009 at 9:15

GoogleCodeExporter commented 8 years ago
This actuallly seems to happen with all widgets. If the integers for 
width/height are 
manually changed and not suffixed with a "px" then the generated code should be 
adding 
that onto the end but is not. I tried it with Imagebuttons, buttons, textviews, 
and 
radiogroups

Original comment by jfisher...@gmail.com on 1 Mar 2010 at 8:19

GoogleCodeExporter commented 8 years ago
Fixed in SVN and will rollout with the next release.

Original comment by brendan....@gmail.com on 6 Sep 2010 at 5:27