1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
3    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
4    android:paddingRight="@dimen/activity_horizontal_margin"
5    android:paddingTop="@dimen/activity_vertical_margin"
6    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
7    android:orientation="vertical">
8
9    <RelativeLayout
10        android:layout_width="match_parent"
11        android:layout_height="0dp"
12        android:layout_weight="0.4">
13    <TextView
14        android:layout_width="wrap_content"
15        android:layout_height="wrap_content"
16        android:text="Pointer RenderScript"
17        android:id="@+id/orignialImageLabel"
18        android:layout_gravity="left"/>
19    <ImageView
20        android:id="@+id/image_view"
21        android:layout_width="wrap_content"
22        android:layout_height="wrap_content"
23        android:layout_below="@id/orignialImageLabel"
24        />
25    </RelativeLayout>
26
27    <RelativeLayout
28        android:layout_width="match_parent"
29        android:layout_height="0dp"
30        android:layout_weight="0.4">
31    <TextView
32        android:layout_width="wrap_content"
33        android:layout_height="wrap_content"
34        android:text="Global Allocation RenderScript"
35        android:id="@+id/newImageLabel"
36        android:layout_gravity="left"/>
37    <ImageView
38        android:id="@+id/image_view_new"
39        android:layout_width="wrap_content"
40        android:layout_height="wrap_content"
41        android:layout_below="@id/newImageLabel"
42        />
43    </RelativeLayout>
44
45    <RelativeLayout
46        android:layout_width="match_parent"
47        android:layout_height="0dp"
48        android:layout_weight="0.2">
49    <TextView
50        android:layout_width="wrap_content"
51        android:layout_height="wrap_content"
52        android:text="Compare Result"
53        android:id="@+id/compareTextView"
54        android:layout_gravity="right"/>
55    </RelativeLayout>
56
57</LinearLayout>
58