Экран сканера

This commit is contained in:
Ivan Murashov
2017-07-19 18:59:04 +03:00
parent ff8ddf4334
commit bb45d252f1
31 changed files with 223 additions and 127 deletions

View File

@@ -2,7 +2,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rootLayout"
android:background="@android:color/white"
android:background="#404040"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -10,5 +10,89 @@
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<View android:layout_height="178dp"
android:layout_width="match_parent"
android:background="#404040"/>
<!--<View android:layout_width="match_parent"-->
<!--android:layout_height="6dp"-->
<!--android:layout_marginTop="178dp"-->
<!--android:background="#c0000000"/>-->
<!--<View android:layout_width="24dp"-->
<!--android:layout_height="232dp"-->
<!--android:layout_marginTop="184dp"-->
<!--android:layout_gravity="left"-->
<!--android:background="#c0000000"/>-->
<!--<View android:layout_width="24dp"-->
<!--android:layout_height="232dp"-->
<!--android:layout_marginTop="184dp"-->
<!--android:layout_gravity="right"-->
<!--android:background="#c0000000"/>-->
<!--<View android:layout_width="match_parent"-->
<!--android:layout_height="18dp"-->
<!--android:layout_marginTop="416dp"-->
<!--android:background="#c0000000"/>-->
<View android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_marginTop="434dp"
android:background="#404040"/>
<!--<FrameLayout android:id="@+id/scanner_contour"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="200dp"-->
<!--android:layout_marginTop="196dp"-->
<!--android:layout_marginLeft="36dp"-->
<!--android:layout_marginRight="36dp">-->
<!--<View android:layout_width="20dp"-->
<!--android:layout_height="20dp"-->
<!--android:layout_gravity="top|left"-->
<!--android:background="@drawable/shape_top_left"/>-->
<!--<View android:layout_width="20dp"-->
<!--android:layout_height="20dp"-->
<!--android:layout_gravity="top|right"-->
<!--android:background="@drawable/shape_top_right"/>-->
<!--<View android:layout_width="20dp"-->
<!--android:layout_height="20dp"-->
<!--android:layout_gravity="bottom|left"-->
<!--android:background="@drawable/shape_bottom_left"/>-->
<!--<View android:layout_width="20dp"-->
<!--android:layout_height="20dp"-->
<!--android:layout_gravity="bottom|right"-->
<!--android:background="@drawable/shape_bottom_right"/>-->
<!--</FrameLayout>-->
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#4272e7"
app:titleTextColor="@android:color/white"/>
<View android:id="@+id/toolbarShadow"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginTop="?attr/actionBarSize"
android:background="@drawable/shadow_bottom"/>
<Button android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:paddingLeft="60dp"
android:paddingRight="60dp"
android:text="@string/scan"
android:textAllCaps="true"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="46dp"
android:background="@drawable/button_blue"/>
</FrameLayout>