On Fri, Feb 4, 2011 at 8:42 AM, Streets Of Boston
<[email protected]> wrote:
> Hi,
>
> The Android Layout Editor has been somewhat problematic for me when it
> shows the layout of the widgets on the screen. Some of the widgets are
> all shown crowded to the top. However, when showing the outline of the
> widgets, the outlines are drawn in the correct spot.
>
> However, when i select 'Android Honeycomb (Preview)', all the widgets
> suddenly are shown in the correct location... no more crowding to the
> top.  If i select any other value (e.g. Android 2.2), the widgets
> start crowding to the top again.

The code which renders Android layouts in the tool, "layoutlib", has
been largely rewritten for Honeycomb. We will backport it to earlier
SDKs soon such that you'll get more accurate wysiwyg designs not just
for Honeycomb.

> One thing remains, though, to make it even more useful. When selecting
> 'Android Honeycomb (Preview), this is shown in the Error log:
> (Shown on Eclipse Helios 3.6.1 with Android plugin version
> 9.0.0.v201101191456-93220, Windows XP, Android tools rev 9, Android
> platform-tools rev 2)
>
> java.lang.NumberFormatException: Color value '@color/screen_bg_top'
> must start with #
>        at
> com.android.layoutlib.bridge.impl.ResourceHelper.getColor(ResourceHelper.java:
> ...
> It seems that the ResourceHelper.getColor should support color-
> references, not only constant color-values (starting with #).

The documentation for color resources seems to indicate that these
colors must be specified as hex colors:

http://developer.android.com/guide/topics/resources/color-list-resource.html

"android:color
Hexadeximal color. Required. The color is specified with an RGB value
and optional alpha channel.
The value always begins with a pound (#) character and then followed
by the Alpha-Red-Green-Blue information in one of the following
formats:"

-- Tor

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to