OSDN Git Service

LayoutLib: fix XmlUtils.convertValueToInt
authorXavier Ducrohet <xav@android.com>
Tue, 11 Jan 2011 20:10:57 +0000 (12:10 -0800)
committerXavier Ducrohet <xav@android.com>
Tue, 11 Jan 2011 20:15:15 +0000 (12:15 -0800)
commit0de16070935adb8656d646b8c69a362652db7443
tree2ffc23024b989155fb563d10fdae7000f1164d7e
parentb3830b8978aa05746912210932e26ebf1836aab5
LayoutLib: fix XmlUtils.convertValueToInt

It looks like the device implementation of Integer.parseInt
is able to handle converting hexa value > 80000000 while the
desktop VM cannot.

This patch provide a fix for this.

While implementing it and running the TestDegates test I realized
that some delegate methods for Region were mising, so this adds them
too.

Change-Id: Ifee1efd47c8c52adc2f4658ec4fc8bd55adb84b4
tools/layoutlib/bridge/src/android/graphics/Region_Delegate.java
tools/layoutlib/bridge/src/com/android/internal/util/XmlUtils_Delegate.java [new file with mode: 0644]
tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java