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
BlameHistoryPermalink
  • 罗翻's avatar
    登录逻辑修改,增加忘记密码,修改密码 · 15877b45
    罗翻 committed 6 years ago
    15877b45
liveness_layout.xml 5.57 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
<?xml version="1.0" encoding="utf-8"?>

<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <RelativeLayout
        android:id="@+id/liveness_layout_rootRel"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <TextureView
            android:id="@+id/liveness_layout_textureview"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <com.megvii.idcardlib.view.AutoRatioImageview
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:src="@drawable/liveness_layout_camera_mask" />

        <com.megvii.idcardlib.FaceMask
            android:id="@+id/liveness_layout_facemask"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone" />

        <com.megvii.idcardlib.view.AutoRatioImageview
            android:id="@+id/liveness_layout_head_mask"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            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" />

            <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"
                android:layout_height="wrap_content"
                android:layout_above="@+id/activity_main_bottomTitle"
                android:layout_marginBottom="15dip"
                android:layout_marginTop="15dip"
                android:visibility="gone" />

            <LinearLayout
                android:id="@+id/liveness_layout_bottom_tips_head"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                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"
                    android:textSize="17dp" />

                <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"
                    android:textSize="22sp" />

                <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>

        <ImageView
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_marginRight="20dp"
            android:scaleType="centerInside"
            android:src="@drawable/liveness_faceppinside"
            android:visibility="gone" />

        <ProgressBar
            android:id="@+id/liveness_layout_progressbar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:visibility="invisible" />

    </RelativeLayout>
</layout>