Commit 7622923d1a79746b1031ddd714af199bd585b47f

Authored by 韩亚云
1 parent 4c6c7c72

个人认证拍摄页面UI添加

core/base/src/main/res/values/colors.xml
... ... @@ -64,5 +64,7 @@
64 64 <color name="my_dialog_btn_text_color">#23D41E</color>
65 65 <!---->
66 66 <color name="color_232326">#232326</color>
  67 + <color name="color_9c9c9c">#9c9c9c</color>
  68 + <color name="color_ff3b30">#ff3b30</color>
67 69  
68 70 </resources>
69 71 \ No newline at end of file
... ...
core/dentity_verfication/build.gradle
... ... @@ -8,6 +8,7 @@ dependencies {
8 8 implementation fileTree(dir: 'libs', include: ['*.jar'])
9 9  
10 10 implementation 'androidx.appcompat:appcompat:1.0.2'
  11 + implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
11 12 testImplementation 'junit:junit:4.12'
12 13 androidTestImplementation 'androidx.test.ext:junit:1.1.1'
13 14 androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
... ...
core/dentity_verfication/src/main/AndroidManifest.xml
  1 +<?xml version="1.0" encoding="utf-8"?>
1 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2   - package="com.cnlive.core.people_verfication" />
  3 + package="com.cnlive.core.people_verfication">
  4 +
  5 + <application>
  6 + <activity android:name=".TakePictureActivity"></activity>
  7 + </application>
  8 +
  9 +</manifest>
3 10 \ No newline at end of file
... ...
core/dentity_verfication/src/main/java/com/cnlive/core/people_verfication/TakePictureActivity.java 0 → 100644
  1 +package com.cnlive.core.people_verfication;
  2 +
  3 +
  4 +import com.cnlive.core.libs.base.frame.activity.BaseActivity;
  5 +
  6 +/**
  7 + * 拍摄照片 身份证件采集
  8 + */
  9 +public class TakePictureActivity extends BaseActivity {
  10 +
  11 + @Override
  12 + protected int getViewLayoutId() {
  13 + return R.layout.activity_take_picture;
  14 + }
  15 +
  16 + @Override
  17 + protected void initView() {
  18 +
  19 + }
  20 +}
... ...
core/dentity_verfication/src/main/res/drawable-hdpi/observer_idcard_back.webp 0 → 100644
No preview for this file type
core/dentity_verfication/src/main/res/drawable-hdpi/observer_idcard_front.webp 0 → 100644
No preview for this file type
core/dentity_verfication/src/main/res/drawable-xhdpi/observer_idcard_back.webp 0 → 100644
No preview for this file type
core/dentity_verfication/src/main/res/drawable-xhdpi/observer_idcard_front.webp 0 → 100644
No preview for this file type
core/dentity_verfication/src/main/res/drawable-xxhdpi/observer_idcard_back.webp 0 → 100644
No preview for this file type
core/dentity_verfication/src/main/res/drawable-xxhdpi/observer_idcard_front.webp 0 → 100644
No preview for this file type
core/dentity_verfication/src/main/res/drawable/take_photo.png 0 → 100644

1.57 KB

core/dentity_verfication/src/main/res/layout/activity_take_picture.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + xmlns:app="http://schemas.android.com/apk/res-auto"
  4 + xmlns:tools="http://schemas.android.com/tools"
  5 + android:layout_width="match_parent"
  6 + android:layout_height="match_parent"
  7 + android:orientation="vertical"
  8 + tools:context=".TakePictureActivity">
  9 +
  10 + <com.qmuiteam.qmui.widget.QMUITopBar
  11 + android:id="@+id/topbar"
  12 + android:layout_width="match_parent"
  13 + android:layout_height="?attr/qmui_topbar_height" />
  14 +
  15 + <ScrollView
  16 + android:layout_width="match_parent"
  17 + android:layout_height="match_parent">
  18 +
  19 + <LinearLayout
  20 + android:layout_width="match_parent"
  21 + android:layout_height="match_parent"
  22 + android:orientation="vertical">
  23 +
  24 + <LinearLayout
  25 + android:layout_width="wrap_content"
  26 + android:layout_height="wrap_content"
  27 + android:layout_gravity="center_horizontal"
  28 + android:orientation="vertical">
  29 +
  30 + <TextView
  31 + android:layout_width="wrap_content"
  32 + android:layout_height="wrap_content"
  33 + android:layout_marginTop="11dp"
  34 + android:text="@string/step_one"
  35 + android:textColor="#ff1a1a1a"
  36 + android:textSize="16sp" />
  37 +
  38 + <LinearLayout
  39 + android:layout_width="match_parent"
  40 + android:layout_height="wrap_content"
  41 + android:layout_marginTop="14dp"
  42 + android:orientation="horizontal">
  43 +
  44 + <TextView
  45 + android:layout_width="wrap_content"
  46 + android:layout_height="wrap_content"
  47 + android:text="@string/please_get_yourself_card"
  48 + android:textColor="@color/color_9c9c9c"
  49 + android:textSize="12sp" />
  50 +
  51 + <TextView
  52 + android:layout_width="wrap_content"
  53 + android:layout_height="wrap_content"
  54 + android:text="@string/font"
  55 + android:textColor="@color/color_ff3b30"
  56 + android:textSize="12sp" />
  57 +
  58 + <TextView
  59 + android:layout_width="wrap_content"
  60 + android:layout_height="wrap_content"
  61 + android:text="@string/card_notice"
  62 + android:textColor="@color/color_9c9c9c"
  63 + android:textSize="12sp" />
  64 +
  65 + </LinearLayout>
  66 +
  67 + <ImageView
  68 + android:id="@+id/certificate_front"
  69 + android:layout_width="wrap_content"
  70 + android:layout_height="wrap_content"
  71 + android:layout_gravity="center_horizontal"
  72 + android:layout_marginTop="12dp"
  73 + android:layout_marginBottom="22dp"
  74 + android:onClick="@{click}"
  75 + android:src="@drawable/observer_idcard_front" />
  76 +
  77 + </LinearLayout>
  78 +
  79 + <View
  80 + android:layout_width="match_parent"
  81 + android:layout_height="10dp"
  82 + android:background="#f2f2f2" />
  83 + <LinearLayout
  84 + android:layout_width="wrap_content"
  85 + android:layout_height="wrap_content"
  86 + android:layout_gravity="center_horizontal"
  87 + android:orientation="vertical">
  88 + <TextView
  89 + android:layout_width="wrap_content"
  90 + android:layout_height="wrap_content"
  91 + android:layout_marginTop="11dp"
  92 + android:text="@string/step_tow"
  93 + android:textColor="#ff1a1a1a"
  94 + android:textSize="16sp" />
  95 +
  96 + <LinearLayout
  97 + android:layout_width="match_parent"
  98 + android:layout_height="wrap_content"
  99 + android:layout_marginTop="14dp"
  100 + android:orientation="horizontal">
  101 +
  102 + <TextView
  103 + android:layout_width="wrap_content"
  104 + android:layout_height="wrap_content"
  105 + android:text="@string/please_get_yourself_card"
  106 + android:textColor="@color/color_9c9c9c"
  107 + android:textSize="12sp" />
  108 +
  109 + <TextView
  110 + android:layout_width="wrap_content"
  111 + android:layout_height="wrap_content"
  112 + android:text="@string/back"
  113 + android:textColor="@color/color_ff3b30"
  114 + android:textSize="12sp" />
  115 +
  116 + <TextView
  117 + android:layout_width="wrap_content"
  118 + android:layout_height="wrap_content"
  119 + android:text="@string/card_notice"
  120 + android:textColor="@color/color_9c9c9c"
  121 + android:textSize="12sp" />
  122 +
  123 + </LinearLayout>
  124 +
  125 + <ImageView
  126 + android:id="@+id/certificate_back"
  127 + android:layout_width="wrap_content"
  128 + android:layout_height="wrap_content"
  129 + android:layout_gravity="center_horizontal"
  130 + android:layout_marginTop="12dp"
  131 + android:layout_marginBottom="22dp"
  132 + android:onClick="@{click}"
  133 + android:src="@drawable/observer_idcard_back" />
  134 + </LinearLayout>
  135 +
  136 +
  137 + <View
  138 + android:layout_width="match_parent"
  139 + android:layout_height="10dp"
  140 + android:background="#f2f2f2" />
  141 +
  142 + <LinearLayout
  143 + android:layout_width="wrap_content"
  144 + android:layout_height="wrap_content"
  145 + android:layout_gravity="center_horizontal"
  146 + android:orientation="vertical">
  147 +
  148 + <TextView
  149 + android:layout_width="wrap_content"
  150 + android:layout_height="wrap_content"
  151 + android:layout_marginTop="11dp"
  152 + android:text="@string/step_third"
  153 + android:textColor="#ff1a1a1a"
  154 + android:textSize="16sp" />
  155 +
  156 + <LinearLayout
  157 + android:layout_width="match_parent"
  158 + android:layout_height="wrap_content"
  159 + android:layout_marginTop="14dp"
  160 + android:orientation="horizontal">
  161 +
  162 + <TextView
  163 + android:layout_width="wrap_content"
  164 + android:layout_height="wrap_content"
  165 + android:text="@string/take_photo_yourself"
  166 + android:textColor="@color/color_9c9c9c"
  167 + android:textSize="12sp" />
  168 +
  169 + </LinearLayout>
  170 +
  171 + <ImageView
  172 + android:id="@+id/take_picture"
  173 + android:layout_width="wrap_content"
  174 + android:layout_height="wrap_content"
  175 + android:layout_marginTop="12dp"
  176 + android:layout_marginBottom="22dp"
  177 + android:onClick="@{click}"
  178 + android:src="@drawable/take_photo" />
  179 + </LinearLayout>
  180 +
  181 + </LinearLayout>
  182 + </ScrollView>
  183 +</LinearLayout>
0 184 \ No newline at end of file
... ...
core/dentity_verfication/src/main/res/values/strings.xml 0 → 100644
  1 +<resources>
  2 + <string name="step_one">第一步</string>
  3 + <string name="please_get_yourself_card">请拍摄本人身份证</string>
  4 + <string name="font">正面</string>
  5 + <string name="card_notice">注意避免证件反光</string>
  6 + <string name="step_tow">第二步</string>
  7 + <string name="back">反面</string>
  8 + <string name="step_third">第三步</string>
  9 + <string name="take_photo_yourself">请您拍摄本人照片,确保肩部至头部清晰可见</string>
  10 +</resources>
... ...