aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src/com/android/resources/ResourceConstants.java
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-08-07 16:30:38 -0700
committerXavier Ducrohet <xav@android.com>2012-08-07 18:47:31 -0700
commit85e4a1a9dd133abb879ec211ce8dd385004edf22 (patch)
tree5e329ad383321880ec28627a3f6f4b9a5d646a61 /layoutlib_api/src/com/android/resources/ResourceConstants.java
parentf9344c0eeacad791fe10a5d1ffc05de2187bf0c6 (diff)
downloadsdk-85e4a1a9dd133abb879ec211ce8dd385004edf22.zip
sdk-85e4a1a9dd133abb879ec211ce8dd385004edf22.tar.gz
sdk-85e4a1a9dd133abb879ec211ce8dd385004edf22.tar.bz2
Refactor common.jar
Move resources and com.android.util.Pair into layoutlib_api where they belong since layoutlib depends on them and we need to control the API. Made a copy of Pair to stay in common.jar but moved it to com.android.utils.Pair (the one in com.android.util.Pair is marked as deprecated to prevent usage where applicable). Also moved XmlUtil and PositionXmlParser to com.android.utils to match Pair. Change-Id: I21d7057d3f2ce604f86a3bb1fa3c130948c93b89
Diffstat (limited to 'layoutlib_api/src/com/android/resources/ResourceConstants.java')
-rw-r--r--layoutlib_api/src/com/android/resources/ResourceConstants.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/layoutlib_api/src/com/android/resources/ResourceConstants.java b/layoutlib_api/src/com/android/resources/ResourceConstants.java
new file mode 100644
index 0000000..748f88a
--- /dev/null
+++ b/layoutlib_api/src/com/android/resources/ResourceConstants.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.resources;
+
+/**
+ * Resource Constants.
+ */
+public class ResourceConstants {
+
+ /** Default anim resource folder name, i.e. "anim" */
+ public final static String FD_RES_ANIM = "anim"; //$NON-NLS-1$
+ /** Default animator resource folder name, i.e. "animator" */
+ public final static String FD_RES_ANIMATOR = "animator"; //$NON-NLS-1$
+ /** Default color resource folder name, i.e. "color" */
+ public final static String FD_RES_COLOR = "color"; //$NON-NLS-1$
+ /** Default drawable resource folder name, i.e. "drawable" */
+ public final static String FD_RES_DRAWABLE = "drawable"; //$NON-NLS-1$
+ /** Default interpolator resource folder name, i.e. "interpolator" */
+ public final static String FD_RES_INTERPOLATOR = "interpolator"; //$NON-NLS-1$
+ /** Default layout resource folder name, i.e. "layout" */
+ public final static String FD_RES_LAYOUT = "layout"; //$NON-NLS-1$
+ /** Default menu resource folder name, i.e. "menu" */
+ public final static String FD_RES_MENU = "menu"; //$NON-NLS-1$
+ /** Default menu resource folder name, i.e. "mipmap" */
+ public final static String FD_RES_MIPMAP = "mipmap"; //$NON-NLS-1$
+ /** Default values resource folder name, i.e. "values" */
+ public final static String FD_RES_VALUES = "values"; //$NON-NLS-1$
+ /** Default xml resource folder name, i.e. "xml" */
+ public final static String FD_RES_XML = "xml"; //$NON-NLS-1$
+ /** Default raw resource folder name, i.e. "raw" */
+ public final static String FD_RES_RAW = "raw"; //$NON-NLS-1$
+
+ /** Separator between the resource folder qualifier. */
+ public final static String RES_QUALIFIER_SEP = "-"; //$NON-NLS-1$
+
+}