OSDN Git Service

LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Mon, 27 Jul 2015 18:50:43 +0000 (11:50 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Tue, 25 Aug 2015 19:06:54 +0000 (12:06 -0700)
commit55a363376b4d877870650a5a4b757d286f571345
treec38b1eb2aeb5644044c0906ada16b8a3d7b76686
parentd861fd81f7a2e62a31c4f2c7aed66fceb475d0c8
LayoutLib: Fix Status/Navigation Bar color. [DO NOT MERGE]

If the color value for status bar or navigation bar is declared directly
in the theme (i.e. doesn't reference a color resource via @color/foo),
the ResourceType for the attribute is not assigned by the IDE. LayoutLib
used to ignore resources that were not of type color. This change fixes
the issue by also checking the resources without a type.

Change-Id: I94735ec225415282db06ab9db5c3233ad89c052f
(cherry picked from commit e3f9834ebd8a6e4ee155c8e4c9456dfc98e8b832)
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java