activity_login.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
  4. android:layout_height="match_parent">
  5. <LinearLayout
  6. android:id="@+id/llMain"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent">
  9. <RelativeLayout
  10. android:layout_width="match_parent"
  11. android:layout_weight="1"
  12. android:layout_height="match_parent">
  13. <com.elexlab.cybercontroller.ui.widget.AssetsAnimationImageView
  14. android:id="@+id/tvImageView"
  15. android:layout_centerInParent="true"
  16. android:src="@mipmap/tv_sleep"
  17. android:layout_width="150dp"
  18. android:layout_height="150dp"
  19. android:layout_centerHorizontal="true"/>
  20. <LinearLayout
  21. android:id="@+id/llSleep"
  22. android:layout_toRightOf="@id/tvImageView"
  23. android:layout_alignParentRight="true"
  24. android:layout_marginTop="100dp"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content">
  27. <TextView
  28. android:text="z"
  29. android:textColor="#9999"
  30. android:textSize="20dp"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"/>
  33. <TextView
  34. android:textColor="#9999"
  35. android:layout_marginLeft="10dp"
  36. android:text="z"
  37. android:textSize="40dp"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"/>
  40. <TextView
  41. android:textColor="#9999"
  42. android:layout_marginLeft="10dp"
  43. android:text="z"
  44. android:textSize="60dp"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"/>
  47. </LinearLayout>
  48. </RelativeLayout>
  49. <RelativeLayout
  50. android:id="@+id/preview_container"
  51. android:layout_alignParentRight="true"
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent"
  54. android:layout_weight="1"
  55. android:minHeight="360dp">
  56. android:layout_height="wrap_content">
  57. <com.elexlab.cybercontroller.ui.widget.CoolDigitalClock
  58. android:id="@+id/digitalClock"
  59. android:scaleX="0.6"
  60. android:scaleY="0.6"
  61. android:layout_centerInParent="true"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"/>
  64. <RelativeLayout
  65. android:id="@+id/rlScanFace"
  66. android:visibility="visible"
  67. android:layout_centerInParent="true"
  68. android:layout_width="300dp"
  69. android:layout_height="match_parent">
  70. <FrameLayout
  71. android:layout_centerInParent="true"
  72. android:id="@+id/surface_layout"
  73. android:layout_width="match_parent"
  74. android:layout_height="match_parent">
  75. </FrameLayout>
  76. <ImageView
  77. android:id="@+id/imageview_scanbg"
  78. android:layout_width="match_parent"
  79. android:layout_height="match_parent"
  80. android:layout_centerInParent="true"
  81. android:scaleType="fitXY"
  82. android:src="@drawable/mask" />
  83. </RelativeLayout>
  84. <TextView
  85. android:id="@+id/tvInfo"
  86. android:visibility="invisible"
  87. android:text="欢迎回来"
  88. android:textSize="60dp"
  89. android:textAlignment="center"
  90. android:textColor="#fff"
  91. android:layout_centerInParent="true"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"/>
  94. </RelativeLayout>
  95. </LinearLayout>
  96. </androidx.constraintlayout.widget.ConstraintLayout>