activity_login.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout 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. <RelativeLayout
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="?attr/colorBg"
  9. android:fitsSystemWindows="true"
  10. android:orientation="vertical">
  11. <FrameLayout
  12. android:id="@+id/header_layout"
  13. android:layout_width="match_parent"
  14. android:layout_height="@dimen/header_height"
  15. android:layout_marginHorizontal="@dimen/iscs_space_2"
  16. android:layout_marginTop="@dimen/iscs_space_2"
  17. android:background="@drawable/bg_card_login_header_bg_radius_md"
  18. android:paddingHorizontal="@dimen/iscs_space_2">
  19. <ImageView
  20. android:layout_width="@dimen/header_logo_width"
  21. android:layout_height="@dimen/header_logo_height"
  22. android:layout_gravity="center_vertical"
  23. android:src="@mipmap/icon_logo" />
  24. <TextClock
  25. android:layout_width="wrap_content"
  26. android:layout_height="match_parent"
  27. android:layout_gravity="right"
  28. android:format12Hour="yyyy-MM-dd HH:mm"
  29. android:format24Hour="yyyy-MM-dd HH:mm"
  30. android:gravity="center_vertical"
  31. android:textColor="?attr/colorLoginHeaderText"
  32. android:textSize="@dimen/iscs_text_md"
  33. android:textStyle="bold|italic" />
  34. </FrameLayout>
  35. <androidx.viewpager2.widget.ViewPager2
  36. android:id="@+id/vp2"
  37. android:layout_width="match_parent"
  38. android:layout_height="match_parent"
  39. android:layout_below="@+id/header_layout"/>
  40. </RelativeLayout>
  41. </layout>