Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

android / dayu

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • dayu
  • IDCardLib
  • src
  • main
  • res
  • layout
  • liveness_layout.xml
Find file
Normal viewHistoryPermalink
liveness_layout.xml 5.57 KB
Edit
Newer Older
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
1 2
<?xml version="1.0" encoding="utf-8"?>

罗翻's avatar
人脸识别增加错误码,主界面增加获取用户信息接口
f3836898
 
罗翻 committed 6 years ago
3 4 5
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <RelativeLayout
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
6
        android:id="@+id/liveness_layout_rootRel"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
7 8
        android:layout_width="match_parent"
        android:layout_height="match_parent"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
9
        android:orientation="vertical">
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
10

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
11 12
        <TextureView
            android:id="@+id/liveness_layout_textureview"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
13
            android:layout_width="match_parent"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
14
            android:layout_height="match_parent" />
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
15

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
16
        <com.megvii.idcardlib.view.AutoRatioImageview
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
17 18
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
19
            android:src="@drawable/liveness_layout_camera_mask" />
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
20

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
21 22
        <com.megvii.idcardlib.FaceMask
            android:id="@+id/liveness_layout_facemask"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
23
            android:layout_width="match_parent"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
24
            android:layout_height="match_parent"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
25 26
            android:visibility="gone" />

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
27 28
        <com.megvii.idcardlib.view.AutoRatioImageview
            android:id="@+id/liveness_layout_head_mask"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
29 30 31
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
            android:src="@drawable/liveness_layout_head_mask" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@id/liveness_layout_head_mask"
            android:background="#F6F5F4">

            <include
                android:id="@+id/activity_main_bottomTitle"
                layout="@layout/bottom_title_layout"
                android:layout_width="match_parent"
                android:layout_height="40dip"
                android:layout_alignParentBottom="true"
                android:visibility="gone" />
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
47

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
48 49 50 51 52 53 54 55 56 57 58 59 60 61
            <include
                android:id="@+id/liveness_layout_first_layout"
                layout="@layout/liveness_detection_step"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_above="@+id/activity_main_bottomTitle"
                android:layout_marginBottom="15dip"
                android:layout_marginTop="15dip"
                android:visibility="invisible" />

            <include
                android:id="@+id/liveness_layout_second_layout"
                layout="@layout/liveness_detection_step"
                android:layout_width="match_parent"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
62
                android:layout_height="wrap_content"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
63 64 65 66
                android:layout_above="@+id/activity_main_bottomTitle"
                android:layout_marginBottom="15dip"
                android:layout_marginTop="15dip"
                android:visibility="gone" />
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
67

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
68 69 70
            <LinearLayout
                android:id="@+id/liveness_layout_bottom_tips_head"
                android:layout_width="match_parent"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
71
                android:layout_height="wrap_content"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
72 73 74 75 76 77 78 79 80 81 82 83 84
                android:layout_above="@+id/activity_main_bottomTitle"
                android:layout_centerHorizontal="true"
                android:gravity="center"
                android:orientation="vertical"
                android:visibility="visible">

                <TextView
                    android:id="@+id/liveness_layout_promptText"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dip"
                    android:text="@string/meglive_prompt"
                    android:textColor="#00ACDF"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
85
                    android:textSize="17dp" />
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8dip"
                    android:src="@drawable/liveness_phoneimage" />
            </LinearLayout>

            <RelativeLayout
                android:id="@+id/detection_step_timeoutRel"
                android:layout_width="35dip"
                android:layout_height="35dip"
                android:layout_alignParentRight="true"
                android:layout_margin="5dip"
                android:visibility="invisible">

                <TextView
                    android:id="@+id/detection_step_timeout_garden"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerInParent="true"
                    android:text="10"
                    android:textColor="#00BEE2"
罗翻's avatar
登录逻辑修改,增加忘记密码,修改密码
15877b45
 
罗翻 committed 6 years ago
109
                    android:textSize="22sp" />
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
110 111 112 113 114 115 116 117

                <com.megvii.idcardlib.view.CircleProgressBar
                    android:id="@+id/detection_step_timeout_progressBar"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_centerInParent="true" />
            </RelativeLayout>
        </RelativeLayout>
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
118

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
119 120 121
        <ImageView
            android:layout_width="70dp"
            android:layout_height="70dp"
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
122
            android:layout_alignParentRight="true"
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
123 124 125 126 127
            android:layout_alignParentTop="true"
            android:layout_marginRight="20dp"
            android:scaleType="centerInside"
            android:src="@drawable/liveness_faceppinside"
            android:visibility="gone" />
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
128

罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
129 130 131 132 133 134
        <ProgressBar
            android:id="@+id/liveness_layout_progressbar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:visibility="invisible" />
罗翻's avatar
增加人脸识别
5b0d1c4f
 
罗翻 committed 7 years ago
135 136

    </RelativeLayout>
罗翻's avatar
处理工单前增加活体检测
33d53e1f
 
罗翻 committed 6 years ago
137
</layout>