/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, 41 * Similar to layout style, but no newlines between related elements such as 70 return LAYOUT; 85 return LAYOUT;
|
/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; 126 assertEquals(LAYOUT, ResourceHelper.parseResource("@layout/foo").getFirst()); 129 assertEquals("foo", ResourceHelper.parseResource("@layout/foo").getSecond()); 137 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT)); 153 assertFalse(ResourceHelper.isValueBasedResourceType(ResourceType.LAYOUT)); 161 assertTrue(ResourceHelper.canCreateResource("@layout/foo")); 167 assertFalse(ResourceHelper.canCreateResource("@layout/foo bar")); // space 168 assertFalse(ResourceHelper.canCreateResource("@layout/new")); // keyword 175 assertTrue(ResourceHelper.canCreateResourceType(ResourceType.LAYOUT)); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
XmlPrettyPrinterTest.java | 18 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities; 114 checkFormat(XmlFormatStyle.LAYOUT, xml, expected); 143 prefs, XmlFormatStyle.LAYOUT, 182 XmlFormatStyle.LAYOUT, 244 XmlFormatPreferences.create(), XmlFormatStyle.LAYOUT, 259 prefs, XmlFormatStyle.LAYOUT, 279 XmlFormatPreferences.create(), XmlFormatStyle.LAYOUT, 291 XmlFormatPreferences.create(), XmlFormatStyle.LAYOUT, 304 prefs, XmlFormatStyle.LAYOUT, 321 XmlFormatStyle.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/layout/ |
MatchingStrategy.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout; 31 * Matching strategy for the Layout Editor. This is used to open all configurations of a layout 37 // first check that the file being opened is a layout file. 41 // get the IFile object and check it's in one of the layout folders. 45 // if it's a layout, we know check the name of the fileInput against the name of the 47 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);
|
/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. 113 mStatusComposite.layout(); 138 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.LayoutEditor; 26 import org.eclipse.swt.layout.GridData; 27 import org.eclipse.swt.layout.GridLayout; 67 nameLabel.setText("New Layout Name:"); 78 "Replace occurrences in all layouts with include to new layout"); 99 setErrorMessage("Provide a name for the new layout"); 103 ResourceType.LAYOUT);
|
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.LayoutEditor; 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. 170 // (3) Transfer layout attributes [all...] |
WrapInRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 18 import static com.android.ide.common.layout.LayoutConstants.ANDROID_NS_NAME_PREFIX; 19 import static com.android.ide.common.layout.LayoutConstants.ANDROID_URI; 20 import static com.android.ide.common.layout.LayoutConstants.ANDROID_WIDGET_PREFIX; 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_WIDTH; 24 import static com.android.ide.common.layout.LayoutConstants.VALUE_FILL_PARENT; 25 import static com.android.ide.common.layout.LayoutConstants.VALUE_MATCH_PARENT; 26 import static com.android.ide.common.layout.LayoutConstants.VALUE_WRAP_CONTENT [all...] |
/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.LayoutEditor; 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) 191 String layout = getSelectedLayout(); local 207 String layout = null; local [all...] |
FragmentMenu.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.common.layout.LayoutConstants.ANDROID_URI; 20 import static com.android.ide.common.layout.LayoutConstants.ATTR_CLASS; 21 import static com.android.ide.common.layout.LayoutConstants.ATTR_NAME; 22 import static com.android.ide.common.layout.LayoutConstants.LAYOUT_PREFIX; 23 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_FRAGMENT_LAYOUT; 27 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor; 28 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode; 57 * Fragment context menu allowing a layout to be chosen for previewing in the fragment frame 137 String layout; local 199 String layout = metadata.getProperty((IDocument) null, node, local 213 String layout = getFragmentLayout(node.getXmlNode()); local 296 String layout = getSelectedLayout(); local [all...] |
IncludeFinder.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 23 import static com.android.resources.ResourceType.LAYOUT; 34 import com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors; 90 /** Map from a layout resource name to a set of layouts included by the given resource */ 154 * Gets the list of all other layouts that are including the given layout. 182 * Returns true if the given resource is included from some other layout in the 186 * @return true if the file is included by some other layout 231 * it strips out the @layout/ prefix, and eliminates the values for empty string 358 // hit this -- even with an average layout root name of 20 characters 408 * Scan the whole project for XML layout resources that are performing includes [all...] |
GraphicalEditorPart.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 19 import static com.android.ide.common.layout.LayoutConstants.ANDROID_STRING_PREFIX; 20 import static com.android.ide.common.layout.LayoutConstants.SCROLL_VIEW; 21 import static com.android.ide.common.layout.LayoutConstants.STRING_PREFIX; 23 import static com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor.viewNeedsPackage; 46 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor; 47 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor; 48 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ChangeFlags; 49 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutReloadMonitor.ILayoutReloadListener; 50 import com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback [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");
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/ |
NewXmlFileWizard.java | 339 * Specific New XML File wizard tied to the {@link ResourceFolderType#LAYOUT} type 349 setWindowTitle("New Android Layout XML File"); 350 super.mMainPage.setTitle("New Android Layout XML File"); 351 super.mMainPage.setDescription("Creates a new Android Layout XML file."); 352 super.mMainPage.setInitialFolderType(ResourceFolderType.LAYOUT);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeContext.java | 343 resValue = mRenderResources.getFrameworkResource(ResourceType.LAYOUT, 346 resValue = mRenderResources.getProjectResource(ResourceType.LAYOUT, 355 // we need to create a pull parser around the layout XML file, and then 388 String.format("Layout %s%s does not exist.", isPlatformLayout ? "android:" : "", 512 // this is only for temp layout params generated dynamically, so this is never [all...] |
/prebuilt/common/tools-common/ |
tools-common-prebuilt.jar | |