Update CtsViewTestCases to load different layout file for landscape mode

android.view.cts.DragDropTest will failed due to screen height is too small and app cannot find draggable view to start drag, if layout is vertical.
The solution is adjust view layout to horizontal in landscape mode to let draggable view can show in the screen.

Test:
1. make CtsViewTestCases –j4
2. Replace CtsViewTestCases.apk in android-cts/testcases/
3. ./android-cts/tools/cts-tradefed
4. run cts -m CtsViewTestCases -t android.view.cts.DragDropTest

Bug: 122230205
Change-Id: I65137438343d67c8b4c23a82e03fe079c6c58994
diff --git a/tests/tests/view/res/layout-land/drag_drop_layout.xml b/tests/tests/view/res/layout-land/drag_drop_layout.xml
new file mode 100644
index 0000000..79aa5df
--- /dev/null
+++ b/tests/tests/view/res/layout-land/drag_drop_layout.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * 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.
+ -->
+
+<LinearLayout
+        android:id="@+id/drag_drop_activity_main"
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:orientation="horizontal">
+    <FrameLayout
+            android:id="@+id/container"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_margin="42dp"
+            android:background="#BBBBBB">
+        <FrameLayout
+                android:id="@+id/subcontainer"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_margin="42dp"
+                android:background="#666666">
+            <View
+                    android:id="@+id/inner"
+                    android:layout_width="42dp"
+                    android:layout_height="42dp"
+                    android:layout_margin="42dp"
+                    android:background="#00FF00" />
+        </FrameLayout>
+    </FrameLayout>
+    <View
+            android:id="@+id/draggable"
+            android:layout_width="42dp"
+            android:layout_height="42dp"
+            android:layout_margin="42dp"
+            android:background="#0000FF" />
+</LinearLayout>