aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy')
-rwxr-xr-xeclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy15
1 files changed, 14 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy b/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy
index 352fa26..8a479d0 100755
--- a/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/gscripts/BaseView.groovy
@@ -20,11 +20,24 @@ public class BaseView implements IViewRule {
private String mFqcn;
+ // Some common Android layout attribute names used by the view rules.
+ // All these belong to the attribute namespace ANDROID_URI.
+ public static String ATTR_ID = "id";
+ public static String ATTR_TEXT = "text";
+ public static String ATTR_LAYOUT_WIDTH = "layout_width";
+ public static String ATTR_LAYOUT_HEIGHT = "layout_height";
+
+ // Some common Android layout attribute values used by the view rules.
+ public static String VALUE_FILL_PARENT = "fill_parent";
+ public static String VALUE_MATCH_PARENT = "match_parent";
+ public static String VALUE_MATCH_CONTENT = "match_content";
+
+
/**
* Namespace for the Android resource XML,
* i.e. "http://schemas.android.com/apk/res/android"
*/
- public static ANDROID_URI = "http://schemas.android.com/apk/res/android";
+ public static String ANDROID_URI = "http://schemas.android.com/apk/res/android";
public boolean onInitialize(String fqcn) {
// This base rule can handle any class.