|
@@ -0,0 +1,156 @@
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@color/white_color"
|
|
|
|
|
+ tools:context="com.usai.redant.raimage.POD.PodActivity">
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/photo_iv"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
|
|
+ android:layout_marginLeft="32dp"
|
|
|
|
|
+ android:layout_marginTop="32dp"
|
|
|
|
|
+ android:layout_marginBottom="32dp"
|
|
|
|
|
+ android:background="@drawable/black_border"
|
|
|
|
|
+ android:padding="0.1dp"
|
|
|
|
|
+ android:scaleType="centerCrop"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintDimensionRatio="h,1:1"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
+ app:srcCompat="@drawable/no_pic"/>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/photo_count_lb"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_alignBottom="@+id/photo_iv"
|
|
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
|
|
+ android:gravity="center_horizontal|bottom"
|
|
|
|
|
+ android:text="No Photos"
|
|
|
|
|
+ android:textColor="@color/blue"
|
|
|
|
|
+ android:textSize="12sp"
|
|
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/photo_iv"
|
|
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/photo_iv"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/photo_iv"
|
|
|
|
|
+ android:layout_marginBottom="8dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/barcode_tv"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="Model:"
|
|
|
|
|
+ android:textAllCaps="false"
|
|
|
|
|
+ android:textSize="17sp"
|
|
|
|
|
+ tools:layout_constraintRight_creator="1"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/photo_iv"
|
|
|
|
|
+ android:layout_marginTop="0dp"
|
|
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/camera_btn" />
|
|
|
|
|
+
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:id="@+id/barcode_et"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginBottom="0dp"
|
|
|
|
|
+ android:layout_marginEnd="21dp"
|
|
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
|
|
+ android:layout_marginTop="0dp"
|
|
|
|
|
+ android:background="@null"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:inputType="none"
|
|
|
|
|
+ android:textSize="17sp"
|
|
|
|
|
+ android:editable="false"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/barcode_tv"
|
|
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/barcode_tv"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/btn_type"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/barcode_tv"
|
|
|
|
|
+ tools:layout_constraintBaseline_creator="1"
|
|
|
|
|
+ tools:layout_constraintRight_creator="1" />
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/signature_iv"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_marginBottom="24dp"
|
|
|
|
|
+ android:layout_marginLeft="0dp"
|
|
|
|
|
+ android:layout_marginRight="0dp"
|
|
|
|
|
+ android:layout_marginTop="32dp"
|
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/scan_btn"
|
|
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/camera_btn"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/upload_btn"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/barcode_et"
|
|
|
|
|
+ android:scaleType="fitCenter"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <ImageButton
|
|
|
|
|
+ android:id="@+id/camera_btn"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginBottom="0dp"
|
|
|
|
|
+ android:layout_marginLeft="44dp"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:background="@color/clear_color"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/photo_iv"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/photo_iv"
|
|
|
|
|
+ app:srcCompat="@drawable/ic_action_camera" />
|
|
|
|
|
+
|
|
|
|
|
+ <ImageButton
|
|
|
|
|
+ android:id="@+id/upload_btn"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginBottom="0dp"
|
|
|
|
|
+ android:layout_marginRight="48dp"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:background="@color/clear_color"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/photo_iv"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
+ app:srcCompat="@drawable/ic_action_upload" />
|
|
|
|
|
+
|
|
|
|
|
+ <ImageButton
|
|
|
|
|
+ android:id="@+id/scan_btn"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginBottom="1dp"
|
|
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:background="@color/clear_color"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/photo_iv"
|
|
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/camera_btn"
|
|
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/upload_btn"
|
|
|
|
|
+ app:srcCompat="@drawable/ic_action_scan" />
|
|
|
|
|
+
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:id="@+id/btn_type"
|
|
|
|
|
+ style="@style/ResultButton"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginBottom="0dp"
|
|
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:text="Type"
|
|
|
|
|
+ android:textColor="@color/blue"
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/barcode_tv"
|
|
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/upload_btn"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/barcode_tv" />
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+</android.support.constraint.ConstraintLayout>
|