86 lines
3.7 KiB
XML
86 lines
3.7 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" tools:context=".MainActivity" android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:keepScreenOn="true"
|
|
>
|
|
<SurfaceView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true"
|
|
android:id="@+id/camera_preview"
|
|
/>
|
|
|
|
<RelativeLayout
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:id="@+id/main_layout"
|
|
android:layout_centerInParent="true"
|
|
>
|
|
<com.affectiva.affdexme.DrawingView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true"
|
|
custom:measurements_text_size="@dimen/measurements_text_size"
|
|
custom:measurements_upper_spacing="@dimen/measurements_upper_text_spacing"
|
|
custom:measurements_lower_spacing="@dimen/measurements_lower_text_spacing"
|
|
custom:measurements_color="#DDDDDD"
|
|
custom:measurements_text_border_color="@color/letter_gray"
|
|
custom:measurements_text_border_thickness="@integer/measurements_text_border_thickness"
|
|
android:id="@+id/drawing_view"/>
|
|
<include layout="@layout/metric_layout"
|
|
android:id="@+id/metric_view_group"
|
|
/>
|
|
<ImageButton
|
|
android:layout_width="@dimen/settings_button_size"
|
|
android:layout_height="@dimen/settings_button_size"
|
|
android:background="@null"
|
|
android:src="@drawable/settings_button_selector"
|
|
android:scaleType="fitCenter"
|
|
android:layout_margin="@dimen/settings_button_margin"
|
|
android:contentDescription="@string/settings_content_description"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_below="@id/metric_view_group"
|
|
android:id="@+id/settings_button"
|
|
android:onClick="settings_button_click"/>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/progress_bar_cover"
|
|
android:background="@color/black">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:id="@+id/please_wait_textview"
|
|
android:text="@string/loading"
|
|
android:textSize="@dimen/please_wait_textview_size"
|
|
android:layout_centerHorizontal="true"
|
|
/>
|
|
<ProgressBar
|
|
android:layout_width="@dimen/please_wait_textview_size"
|
|
android:layout_height="@dimen/please_wait_textview_size"
|
|
android:layout_toLeftOf="@id/please_wait_textview"
|
|
android:layout_centerVertical="true"
|
|
android:indeterminate="true"
|
|
android:paddingRight="10dp"
|
|
android:id="@+id/progress_bar"/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:text="@string/not_found"
|
|
android:padding="20sp"
|
|
android:textColor="#CCCCCC"
|
|
android:background="@color/black"
|
|
android:gravity="center"
|
|
android:id="@+id/not_found_textview"
|
|
android:visibility="gone"
|
|
android:textSize="20sp"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
|