2015-06-23 20:44:24 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-07-20 19:53:09 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
2015-06-23 20:44:24 +00:00
|
|
|
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"
|
|
|
|
/>
|
2015-07-13 18:17:57 +00:00
|
|
|
|
|
|
|
<RelativeLayout
|
2015-06-23 20:44:24 +00:00
|
|
|
android:layout_height="match_parent"
|
2015-07-13 18:17:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:id="@+id/main_layout"
|
2015-06-23 20:44:24 +00:00
|
|
|
android:layout_centerInParent="true"
|
2015-07-13 18:17:57 +00:00
|
|
|
>
|
|
|
|
<com.affectiva.affdexme.DrawingView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_centerInParent="true"
|
2015-07-20 19:53:09 +00:00
|
|
|
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/drawing_view_text_border_thickness"
|
2015-07-13 18:17:57 +00:00
|
|
|
android:id="@+id/drawing_view"/>
|
|
|
|
<include layout="@layout/metric_layout"
|
|
|
|
android:id="@+id/metric_view_group"
|
|
|
|
/>
|
2015-07-20 19:53:09 +00:00
|
|
|
<ImageButton
|
|
|
|
android:layout_width="@dimen/settings_button_width"
|
|
|
|
android:layout_height="@dimen/settings_button_height"
|
|
|
|
android:background="@null"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="@drawable/settings_button_selector"
|
|
|
|
android:layout_margin="@dimen/settings_button_margin"
|
|
|
|
android:layout_alignParentRight="true"
|
2015-07-13 18:17:57 +00:00
|
|
|
android:layout_below="@id/metric_view_group"
|
2015-07-20 19:53:09 +00:00
|
|
|
android:id="@+id/settings_button"
|
|
|
|
android:onClick="settings_button_click"/>
|
2015-07-13 18:17:57 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2015-06-23 20:44:24 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/progress_bar_cover"
|
|
|
|
android:background="@color/black">
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="@android:style/Widget.DeviceDefault.ProgressBar"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"/>
|
|
|
|
<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>
|
|
|
|
|