/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
XmlFormatStyle.java | 26 * different preferred formats. For example, in layout files there is typically always a 30 * included on the same line whereas for other layout styles the children are typically 34 /** Layout formatting style: blank lines between elements, attributes on separate lines */ 35 LAYOUT, 37 /** Similar to layout formatting style, but no blank lines inside opening elements */ 44 * Similar to layout style, but no newlines between related elements such as 74 case LAYOUT: 75 return LAYOUT; 96 case LAYOUT: 97 return LAYOUT; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
ResourceNameValidatorTest.java | 47 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT) 49 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT) 55 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT)
|
ResourceHelperTest.java | 20 import static com.android.resources.ResourceType.LAYOUT; 129 assertEquals(LAYOUT, ResourceHelper.parseResource("@layout/foo").getFirst()); 132 assertEquals("foo", ResourceHelper.parseResource("@layout/foo").getSecond()); 140 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT)); 156 assertFalse(ResourceHelper.isValueBasedResourceType(ResourceType.LAYOUT)); 164 assertTrue(ResourceHelper.canCreateResource("@layout/foo")); 170 assertFalse(ResourceHelper.canCreateResource("@layout/foo bar")); // space 171 assertFalse(ResourceHelper.canCreateResource("@layout/new")); // keyword 178 assertTrue(ResourceHelper.canCreateResourceType(ResourceType.LAYOUT)); [all...] |
/sdk/common/src/com/android/resources/ |
ResourceFolderType.java | 30 LAYOUT(AndroidConstants.FD_RES_LAYOUT),
|
FolderTypeRelationship.java | 55 add(ResourceType.LAYOUT, ResourceFolderType.LAYOUT); 56 add(ResourceType.ID, ResourceFolderType.LAYOUT);
|
ResourceType.java | 37 LAYOUT("layout", "Layout"), //$NON-NLS-1$
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/common/ |
CommonMatchingStrategy.java | 21 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorMatchingStrategy; 43 // get the IFile object and check it's in one of the layout folders. 47 if (resFolder != null && resFolder.getType() == ResourceFolderType.LAYOUT) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
LayoutEditorMatchingStrategy.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout; 32 * Matching strategy for the Layout Editor. This is used to open all configurations of a layout 39 // first check that the file being opened is a layout file. 43 // get the IFile object and check it's in one of the layout folders. 55 // if it's a layout, we now check the name of the fileInput against the name of the 57 if (resFolder != null && resFolder.getType() == ResourceFolderType.LAYOUT) {
|
/sdk/ide_common/src/com/android/ide/common/resources/ |
ResourceFolder.java | 80 // We have a special case for layout/menu folders which can also generate IDs. 90 } else if (types.contains(ResourceType.LAYOUT)) { 91 resFile = new IdGeneratingResourceFile(file, this, ResourceType.LAYOUT);
|
FrameworkResources.java | 220 case LAYOUT:
|
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/ |
LayoutDetector.java | 37 * Abstract class specifically intended for layout detectors which provides some 38 * common utility methods shared by layout detectors. 47 return folderType == ResourceFolderType.LAYOUT;
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
BridgeInflater.java | 165 ResourceType.LAYOUT, layoutInfo.getSecond()); 171 ResourceType.LAYOUT, layoutInfo.getSecond()); 233 // looks like we inside an embedded layout. 235 // top level of the embedded layout. If there is a merge tag, then
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectCalendarsSyncAdapter.java | 46 private static final int LAYOUT = R.layout.calendar_sync_item; 125 view = mInflater.inflate(LAYOUT, parent, false);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ |
ConfigMatchTest.java | 230 ResourceFolderType.LAYOUT, testConfig); 272 String folderName = config.getFolderName(ResourceFolderType.LAYOUT);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
LayoutCreatorDialog.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.configuration; 31 import org.eclipse.swt.layout.GridData; 32 import org.eclipse.swt.layout.GridLayout; 76 // parent's layout is a GridLayout as specified in the javadoc. 114 mStatusComposite.layout(); 139 mConfig.getFolderName(ResourceFolderType.LAYOUT), mFileName),
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ExtractIncludeWizard.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 19 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 26 import org.eclipse.swt.layout.GridData; 27 import org.eclipse.swt.layout.GridLayout; 68 nameLabel.setText("New Layout Name:"); 79 "Replace occurrences in all layouts with include to new layout"); 100 setErrorMessage("Provide a name for the new layout"); 104 ResourceType.LAYOUT);
|
UseCompoundDrawableRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 18 import static com.android.ide.common.layout.LayoutConstants.ANDROID_URI; 19 import static com.android.ide.common.layout.LayoutConstants.ATTR_DRAWABLE_BOTTOM; 20 import static com.android.ide.common.layout.LayoutConstants.ATTR_DRAWABLE_LEFT; 21 import static com.android.ide.common.layout.LayoutConstants.ATTR_DRAWABLE_RIGHT; 22 import static com.android.ide.common.layout.LayoutConstants.ATTR_DRAWABLE_TOP; 23 import static com.android.ide.common.layout.LayoutConstants.ATTR_GRAVITY; 24 import static com.android.ide.common.layout.LayoutConstants.ATTR_ID; 25 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT; 26 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH 143 Element layout = mElements.get(0); local 212 Element layout = mElements.get(0); local [all...] |
ExtractIncludeRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 19 import static com.android.ide.common.layout.LayoutConstants.ANDROID_NS_NAME; 20 import static com.android.ide.common.layout.LayoutConstants.ANDROID_URI; 21 import static com.android.ide.common.layout.LayoutConstants.ATTR_ID; 22 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT; 23 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_PREFIX; 24 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH; 25 import static com.android.ide.common.layout.LayoutConstants.ID_PREFIX; 26 import static com.android.ide.common.layout.LayoutConstants.NEW_ID_PREFIX; 27 import static com.android.ide.common.layout.LayoutConstants.VALUE_WRAP_CONTENT [all...] |
UnwrapRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 18 import static com.android.ide.common.layout.LayoutConstants.ANDROID_URI; 19 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT; 20 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH; 25 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 26 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities; 51 * Removes the layout surrounding the current selection (or if the current selection has 52 * children, removes the current layout), and migrates namespace and layout attributes. 173 // (3) Transfer layout attributes [all...] |
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
ExtraTextDetector.java | 46 "Looks for extraneous text in layout files", 47 "Layout resource files should only contain elements and attributes. Any XML " + 63 return folderType == ResourceFolderType.LAYOUT 126 String.format("Unexpected text found in layout file: \"%1$s\"",
|
ApiDetector.java | 166 if (folderType != ResourceFolderType.LAYOUT) { 197 } else if (folderType == ResourceFolderType.LAYOUT) { 200 folderType != ResourceFolderType.LAYOUT) {
|
JavaPerformanceDetector.java | 67 "You should avoid allocating objects during a drawing or layout operation. These " + 135 private static final String LAYOUT = "layout"; //$NON-NLS-1$ 247 "Avoid object allocations during draw/layout operations (preallocate and " + 452 * {@code public void layout(int l, int t, int r, int b)} 455 if (LAYOUT.equals(node.astMethodName().astValue())) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/ |
NewXmlFileWizard.java | 21 import static com.android.ide.common.layout.LayoutConstants.FQCN_GRID_LAYOUT; 22 import static com.android.ide.common.layout.LayoutConstants.GRID_LAYOUT; 209 if (folderType == ResourceFolderType.LAYOUT && root.equals(GRID_LAYOUT)) { 357 * Specific New XML File wizard tied to the {@link ResourceFolderType#LAYOUT} type 367 setWindowTitle("New Android Layout XML File"); 368 super.mMainPage.setTitle("New Android Layout XML File"); 369 super.mMainPage.setDescription("Creates a new Android Layout XML file."); 370 super.mMainPage.setInitialFolderType(ResourceFolderType.LAYOUT);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ListViewTypeMenu.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 18 import static com.android.ide.common.layout.LayoutConstants.ANDROID_LAYOUT_PREFIX; 19 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_LV_FOOTER; 20 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_LV_HEADER; 21 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_LV_ITEM; 25 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 26 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode; 64 super(isGrid ? "Preview Grid Content" : isSpinner ? "Preview Spinner Layout" 75 IAction action = new PickLayoutAction("Choose Layout...", KEY_LV_ITEM); 140 public SetListTypeAction(String title, String layout, String selected) 192 String layout = getSelectedLayout(); local 208 String layout = null; local 233 metadata.setProperty(delegate.getEditor(), xmlNode, type, layout); local [all...] |
/sdk/layoutlib_api/sample/src/com/example/android/render/ |
RenderService.java | 183 // find the layout to run 184 ResourceValue value = mResourceResolver.getProjectResource(ResourceType.LAYOUT, layoutName); 186 throw new IllegalArgumentException("layout does not exist");
|