aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-12-09 19:40:29 -0800
committerXavier Ducrohet <xav@android.com>2010-12-10 11:30:54 -0800
commit79ebb8f4ec3236d361c4b6a6d97440a29c50aa4a (patch)
tree2b0a0b0047a5e9d7c5e794370db5a79163c75f03 /layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java
parent9a1f4d718be6c277b344ed361821e275858ebd11 (diff)
downloadsdk-79ebb8f4ec3236d361c4b6a6d97440a29c50aa4a.zip
sdk-79ebb8f4ec3236d361c4b6a6d97440a29c50aa4a.tar.gz
sdk-79ebb8f4ec3236d361c4b6a6d97440a29c50aa4a.tar.bz2
Clean up the api around Layoutlib.
Move (Style/DensityBased)ResourceValue into layoutlib_api and make the API use that instead of the interface. We'll get ride of the interfaces once only obsolete platforms use them. In ide-commons also got rid of LayoutBridgeWrapper and moved the code in LayoutLibrary which does not expose the bridge anymore, and instead expose an API similar to the LayoutBridge class. Updated ADT to use LayoutLibrary directly instead of going through LayoutLibrary.getBridge(). This allows us to hide some things like querying the API level and relying instead on Capabilities (with special handle for legacy bridges). Also added an error message to LayoutLibrary to display why it may have failed to load. Added a check to the API level and don't load layoutlib that are more recent than the client. Change-Id: Ie4e615d8d32485ee577bb88e95cd3f562bf590cb
Diffstat (limited to 'layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java')
-rw-r--r--layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java b/layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java
index 1da9508..8a3e754 100644
--- a/layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java
+++ b/layoutlib_api/src/com/android/layoutlib/api/IResourceValue.java
@@ -18,9 +18,11 @@ package com.android.layoutlib.api;
/**
* Represents an android resource with a name and a string value.
+ * @deprecated use {@link ResourceValue}.
*/
+@Deprecated
public interface IResourceValue {
-
+
/**
* Returns the type of the resource. For instance "drawable", "color", etc...
*/
@@ -35,7 +37,7 @@ public interface IResourceValue {
* Returns the value of the resource, as defined in the XML. This can be <code>null</code>
*/
String getValue();
-
+
/**
* Returns whether the resource is a framework resource (<code>true</code>) or a project
* resource (<code>false</false>).