1<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="match_parent"> 4 5 <LinearLayout android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:orientation="vertical"> 8 9 <!-- Deliberately empty so that we can add camera preview to it dynamically--> 10 <LinearLayout 11 android:layout_width="match_parent" 12 android:orientation="vertical" 13 android:layout_weight=".5" 14 android:layout_height="0dp" 15 android:id="@+id/llCamera"> 16 </LinearLayout> 17 18 <RelativeLayout 19 android:padding="4dp" 20 android:layout_width="match_parent" 21 android:orientation="vertical" 22 android:layout_weight=".5" 23 android:layout_height="0dp"> 24 25 <TextView 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:textSize="17sp" 29 android:layout_below="@+id/llPassFail" 30 android:id="@+id/tvObjective"/> 31 32 <TextView 33 android:layout_below="@+id/tvObjective" 34 android:paddingTop="20dp" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:id="@+id/tvTimer"/> 38 39 <TextView 40 android:id="@+id/tvPassColour" 41 android:layout_width="match_parent" 42 android:layout_height="50dp" 43 android:layout_marginTop="50dp" 44 android:layout_below="@id/tvTimer" 45 android:background="@color/green"/> 46 47 <include layout="@layout/verifier_buttons"/> 48 49 </RelativeLayout> 50 </LinearLayout> 51 52 <ImageButton 53 android:id="@+id/fabPlaceWaypoint" 54 android:layout_width="70dp" 55 android:layout_height="70dp" 56 android:layout_alignParentBottom="true" 57 android:layout_alignParentRight="true" 58 android:layout_margin="16dp" 59 android:background="@drawable/round_button" 60 android:src="@drawable/ic_place_white_24dp"/> 61</RelativeLayout> 62