aboutsummaryrefslogtreecommitdiffstats
path: root/samples/viewhost/res/layout/activity_main.xml
diff options
context:
space:
mode:
Diffstat (limited to 'samples/viewhost/res/layout/activity_main.xml')
-rw-r--r--samples/viewhost/res/layout/activity_main.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/samples/viewhost/res/layout/activity_main.xml b/samples/viewhost/res/layout/activity_main.xml
new file mode 100644
index 00000000..a21a338d
--- /dev/null
+++ b/samples/viewhost/res/layout/activity_main.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="@dimen/activity_horizontal_margin"
+ android:paddingRight="@dimen/activity_horizontal_margin"
+ android:paddingTop="@dimen/activity_vertical_margin"
+ android:paddingBottom="@dimen/activity_vertical_margin">
+
+ <LinearLayout
+ android:id="@+id/root"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <cyanogenmod.externalviews.ExternalView
+ android:id="@+id/external_view"
+ android:layout_width="match_parent"
+ android:layout_height="200dp"/>
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="200dp"
+ android:background="#FF0000"/>
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="200dp"
+ android:background="#00FF00"/>
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="200dp"
+ android:background="#0000FF"/>
+ </LinearLayout>
+
+</ScrollView> \ No newline at end of file