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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true"><shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp"/>
<solid android:color="#3078c0"/>
</shape>
</item>
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="4dp"/>
<solid android:color="#4272e7"/>
</shape>
</item>
</selector>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:type="linear"
android:angle="90"
android:startColor="#00000000"
android:endColor="#36000000"/>
</shape>

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>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/faq"
android:orderInCategory="0"
android:title="@string/faq"
android:icon="@drawable/help_outline"
app:showAsAction="ifRoom"/>
<item android:id="@+id/logout"
android:orderInCategory="1"
android:title="@string/logout"
android:icon="@drawable/logout"
app:showAsAction="ifRoom"/>
</menu>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@@ -0,0 +1,5 @@
<resources>
<dimen name="scanner_contour_left">24dp</dimen>
<dimen name="scanner_contour_top">178dp</dimen>
<dimen name="scanner_contour_height">232dp</dimen>
</resources>

View File

@@ -0,0 +1,7 @@
<resources>
<string name="app_name">Checker</string>
<string name="scanner_title">Сканнер карты</string>
<string name="scan">Сканировать</string>
<string name="faq">FAQ</string>
<string name="logout">Выход</string>
</resources>

View File

@@ -0,0 +1,6 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar"/>
</resources>