OSDN Git Service

LayoutLib: Fix EditText rendering
authorDeepanshu Gupta <deepanshu@google.com>
Tue, 10 Jun 2014 01:57:18 +0000 (18:57 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Wed, 11 Jun 2014 00:44:14 +0000 (17:44 -0700)
commit1160e6d2f7018117b0c29a7e2adba9ece36faec1
treea18723ef2987cd7335539f994e53f0068ba681b2
parent6d7a25f317be60ae8a4d8806e517052be2398753
LayoutLib: Fix EditText rendering

Framework has overloaded java.lang.System.arraycopy() for char[]. The
method is not present on the Desktop VMs. This change replaces the calls
to this method by its more general alternative - the one using Objects.

TODO: Make it more configurable and flexible to allow rewrite of any
such methods in the future.

Change-Id: I6823b13e52b1c555eb257d02b79707d84e73236f
tools/layoutlib/create/README.txt
tools/layoutlib/create/src/com/android/tools/layoutlib/create/AsmAnalyzer.java
tools/layoutlib/create/src/com/android/tools/layoutlib/create/AsmGenerator.java
tools/layoutlib/create/src/com/android/tools/layoutlib/create/Main.java
tools/layoutlib/create/src/com/android/tools/layoutlib/create/ReplaceMethodCallsAdapter.java [new file with mode: 0644]