diff --git a/plugins/android-designer/src/com/intellij/android/designer/icons/GridLayout.png b/plugins/android-designer/src/com/intellij/android/designer/icons/GridLayout.png
new file mode 100644
index 000000000000..1aa4165754f3
Binary files /dev/null and b/plugins/android-designer/src/com/intellij/android/designer/icons/GridLayout.png differ
diff --git a/plugins/android-designer/src/com/intellij/android/designer/model/grid/RadGridLayout.java b/plugins/android-designer/src/com/intellij/android/designer/model/grid/RadGridLayout.java
new file mode 100644
index 000000000000..9ad9a94c2255
--- /dev/null
+++ b/plugins/android-designer/src/com/intellij/android/designer/model/grid/RadGridLayout.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2000-2012 JetBrains s.r.o.
+ *
+ * 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.intellij.android.designer.model.grid;
+
+import com.intellij.android.designer.designSurface.TreeDropToOperation;
+import com.intellij.android.designer.model.RadViewLayoutWithData;
+import com.intellij.designer.componentTree.TreeEditOperation;
+import com.intellij.designer.designSurface.EditOperation;
+import com.intellij.designer.designSurface.OperationContext;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * @author Alexander Lobas
+ */
+public class RadGridLayout extends RadViewLayoutWithData {
+ private static final String[] LAYOUT_PARAMS = {"GridLayout_Layout", "ViewGroup_MarginLayout"};
+
+ @NotNull
+ @Override
+ public String[] getLayoutParams() {
+ return LAYOUT_PARAMS;
+ }
+
+ @Override
+ public EditOperation processChildOperation(OperationContext context) {
+ if (context.isCreate() || context.isPaste() || context.isAdd() || context.isMove()) {
+ if (context.isTree()) {
+ if (TreeEditOperation.isTarget(myContainer, context)) {
+ return new TreeDropToOperation(myContainer, context);
+ }
+ return null;
+ }
+ // XXX
+ return null;
+ }
+ return null;
+ }
+}
\ No newline at end of file
diff --git a/plugins/android-designer/src/com/intellij/android/designer/model/grid/RadGridLayoutComponent.java b/plugins/android-designer/src/com/intellij/android/designer/model/grid/RadGridLayoutComponent.java
new file mode 100644
index 000000000000..7cd3da281949
--- /dev/null
+++ b/plugins/android-designer/src/com/intellij/android/designer/model/grid/RadGridLayoutComponent.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2000-2012 JetBrains s.r.o.
+ *
+ * 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.intellij.android.designer.model.grid;
+
+import com.intellij.android.designer.model.RadViewContainer;
+
+/**
+ * @author Alexander Lobas
+ */
+public class RadGridLayoutComponent extends RadViewContainer {
+}
\ No newline at end of file
diff --git a/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml b/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml
index c044e3abc922..e040f92995d9 100644
--- a/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml
+++ b/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml
@@ -1137,6 +1137,29 @@
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
@@ -1200,6 +1223,7 @@
+