• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2
3<LinearLayout
4    xmlns:android="http://schemas.android.com/apk/res/android"
5    android:orientation="vertical"
6    android:layout_width="wrap_content"
7    android:layout_height="wrap_content"
8    android:gravity="center_horizontal"
9    >
10
11  <include layout="@layout/snippet"/>
12
13  <View
14      android:layout_width="fill_parent"
15      android:layout_height="10dip"
16      />
17
18  <TextView
19      android:id="@+id/time"
20      android:layout_width="wrap_content"
21      android:layout_height="wrap_content"
22      android:textSize="14dip"
23      android:textColor="#fff"
24      android:enabled="false"
25      android:contentDescription="@string/howdy"
26      android:alpha="0.3"
27      />
28
29  <TextView
30      android:id="@+id/title"
31      android:layout_width="138dip"
32      android:layout_height="wrap_content"
33      android:maxHeight="46dip"
34      android:singleLine="false"
35      android:gravity="center_horizontal"
36      android:text="Main Layout"
37      android:textSize="18dip"
38      android:textStyle="bold"
39      android:textColor="#fff"
40      android:drawableTop="@drawable/an_image"
41      android:drawableRight="@drawable/an_other_image"
42      android:drawableBottom="@drawable/third_image"
43      android:drawableLeft="@drawable/fourth_image"
44      />
45
46  <TextView
47      android:id="@+id/subtitle"
48      android:layout_width="138dip"
49      android:layout_height="wrap_content"
50      android:gravity="center_horizontal"
51      android:text="@string/hello"
52      android:maxHeight="36dip"
53      android:textSize="14dip"
54      android:textColor="#fff"
55      />
56
57  <CheckBox
58      android:id="@+id/true_checkbox"
59      android:layout_width="wrap_content"
60      android:layout_height="wrap_content"
61      android:checked="true"
62      />
63  <CheckBox
64      android:id="@+id/false_checkbox"
65      android:layout_width="wrap_content"
66      android:layout_height="wrap_content"
67      android:checked="false"
68      />
69  <CheckBox
70      android:id="@+id/default_checkbox"
71      android:layout_width="wrap_content"
72      android:layout_height="wrap_content"
73      />
74
75  <ImageView
76      android:id="@+id/image"
77      android:layout_width="wrap_content"
78      android:layout_height="wrap_content"
79      android:src="@drawable/an_image"
80      android:background="@drawable/image_background"
81      />
82
83    <ImageView
84            android:id="@+id/mipmapImage"
85            android:layout_width="wrap_content"
86            android:layout_height="wrap_content"
87            android:src="@mipmap/robolectric"
88            />
89
90  <Button
91      android:id="@+id/button"
92      android:layout_width="wrap_content"
93      android:layout_height="wrap_content"
94      android:onClick="onButtonClick"
95      />
96
97  <!-- see https://github.com/robolectric/robolectric/issues/521 -->
98  <HorizontalScrollView
99      android:layout_width="wrap_content"
100      android:layout_height="wrap_content"
101      />
102</LinearLayout>
103