Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. <android.support.design.widget.CollapsingToolbarLayout
  2. android:id="@+id/toolbar_layout"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:fitsSystemWindows="true"
  6. app:contentScrim="?attr/colorPrimary"
  7. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  8.  
  9. <ImageView
  10. android:id="@+id/bg_header"
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:scaleType="centerCrop"
  14. android:fitsSystemWindows="true"
  15. tools:src="@drawable/login_bg"
  16. app:layout_collapseMode="pin" />
  17.  
  18. <RelativeLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent"
  21. android:fitsSystemWindows="true"
  22. app:layout_collapseMode="pin"
  23. android:background="@color/transparent_80">
  24. <ImageView
  25. android:layout_width="110dp"
  26. android:layout_height="110dp"
  27. android:id="@+id/radar_image_view"
  28. android:src="@drawable/radar"
  29. android:layout_centerHorizontal="true"
  30. android:layout_marginTop="70dp"/>
  31. </RelativeLayout>
  32. <android.support.v7.widget.Toolbar
  33. android:id="@+id/toolbar"
  34. android:layout_width="match_parent"
  35. android:layout_height="?attr/actionBarSize"
  36. app:layout_collapseMode="pin"
  37. app:popupTheme="@style/AppTheme.PopupOverlay"
  38. app:contentInsetLeft="0dp"
  39. app:contentInsetStart="0dp"
  40. app:contentInsetRight="0dp"
  41. app:contentInsetEnd="0dp">
  42. <RelativeLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="match_parent">
  45. <Button
  46. android:id="@+id/back_button"
  47. android:layout_width="24dp"
  48. android:layout_height="24dp"
  49. android:layout_gravity="center_vertical"
  50. android:background="@drawable/close"
  51. android:layout_alignParentStart="true"
  52. android:layout_marginStart="8dp"
  53. android:layout_centerVertical="true"/>
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:id="@+id/title_label"
  58. android:layout_centerInParent="true"
  59. android:layout_marginStart="24dp"
  60. android:layout_marginEnd="16dp"
  61. android:layout_marginBottom="24dp"
  62. android:text="TZ Sensor Finder"
  63. android:textStyle="bold"
  64. android:textSize="20sp"
  65. android:textColor="@color/white"/>
  66. <Button
  67. android:id="@+id/rescan_button"
  68. android:layout_width="24dp"
  69. android:layout_height="24dp"
  70. android:layout_marginEnd="12dp"
  71. android:layout_centerVertical="true"
  72. android:layout_alignParentEnd="true"
  73. android:background="@drawable/ic_rescan"
  74. android:layout_marginTop="12dp"/>
  75. </RelativeLayout>
  76. </android.support.v7.widget.Toolbar>
  77. </android.support.design.widget.CollapsingToolbarLayout>
Add Comment
Please, Sign In to add comment