1 /* 2 * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Eclipse Public License, Version 1.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ide.eclipse.adt.internal.editors.layout; 18 19 20 /** 21 * A bunch of constants that map to either: 22 * <ul> 23 * <li>Android Layouts XML element names (Linear, Relative, Absolute, etc.) 24 * <li>Attributes for layout XML elements. 25 * <li>Values for attributes. 26 * </ul> 27 */ 28 public class LayoutConstants { 29 30 public static final String RELATIVE_LAYOUT = "RelativeLayout"; //$NON-NLS-1$ 31 public static final String LINEAR_LAYOUT = "LinearLayout"; //$NON-NLS-1$ 32 public static final String ABSOLUTE_LAYOUT = "AbsoluteLayout"; //$NON-NLS-1$ 33 34 public static final String ATTR_TEXT = "text"; //$NON-NLS-1$ 35 public static final String ATTR_ID = "id"; //$NON-NLS-1$ 36 37 public static final String ATTR_LAYOUT_HEIGHT = "layout_height"; //$NON-NLS-1$ 38 public static final String ATTR_LAYOUT_WIDTH = "layout_width"; //$NON-NLS-1$ 39 40 public static final String ATTR_LAYOUT_ALIGN_PARENT_TOP = "layout_alignParentTop"; //$NON-NLS-1$ 41 public static final String ATTR_LAYOUT_ALIGN_PARENT_BOTTOM = "layout_alignParentBottom"; //$NON-NLS-1$ 42 public static final String ATTR_LAYOUT_ALIGN_PARENT_LEFT = "layout_alignParentLeft";//$NON-NLS-1$ 43 public static final String ATTR_LAYOUT_ALIGN_PARENT_RIGHT = "layout_alignParentRight"; //$NON-NLS-1$ 44 45 public static final String ATTR_LAYOUT_ALIGN_BASELINE = "layout_alignBaseline"; //$NON-NLS-1$ 46 47 public static final String ATTR_LAYOUT_CENTER_VERTICAL = "layout_centerVertical"; //$NON-NLS-1$ 48 public static final String ATTR_LAYOUT_CENTER_HORIZONTAL = "layout_centerHorizontal"; //$NON-NLS-1$ 49 50 public static final String ATTR_LAYOUT_TO_RIGHT_OF = "layout_toRightOf"; //$NON-NLS-1$ 51 public static final String ATTR_LAYOUT_TO_LEFT_OF = "layout_toLeftOf"; //$NON-NLS-1$ 52 53 public static final String ATTR_LAYOUT_BELOW = "layout_below"; //$NON-NLS-1$ 54 public static final String ATTR_LAYOUT_ABOVE = "layout_above"; //$NON-NLS-1$ 55 56 public static final String ATTR_LAYOUT_Y = "layout_y"; //$NON-NLS-1$ 57 public static final String ATTR_LAYOUT_X = "layout_x"; //$NON-NLS-1$ 58 59 public static final String VALUE_WRAP_CONTENT = "wrap_content"; //$NON-NLS-1$ 60 public static final String VALUE_FILL_PARENT = "fill_parent"; //$NON-NLS-1$ 61 public static final String VALUE_TRUE = "true"; //$NON-NLS-1$ 62 public static final String VALUE_N_DIP = "%ddip"; //$NON-NLS-1$ 63 64 private LayoutConstants() { 65 } 66 } 67