OSDN Git Service

Disable palette preview for some widgets on some platforms
authorTor Norbye <tnorbye@google.com>
Tue, 24 May 2011 17:58:29 +0000 (10:58 -0700)
committerTor Norbye <tnorbye@google.com>
Tue, 24 May 2011 17:58:29 +0000 (10:58 -0700)
commitdcbdb3208fa06c814b1dac2b5382df20eb65f30c
tree25a2ee2226a8bf776a90bf571e74cfe374bcbbd7
parent1f03a6d703421d94c392c5afc74f7036d4c71167
Disable palette preview for some widgets on some platforms

ListView palette preview requires adapterview support in layoutlib,
and DatePicker and TimePicker require Holo themes on Honeycomb. This
changeset adds some conditional logic to the palette preview code to
drop rendering of these widgets based on the current render target,
layout library and theme.

Change-Id: Ic42a40faf817e60525485e0a46b7ad967ed1c363
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/LayoutConstants.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PreviewIconFactory.java