Advertisement
Davencode

Untitled

Aug 28th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.drawerlayout.widget.DrawerLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:id="@+id/drawerLayout"
  8. android:layout_height="match_parent"
  9. android:background="#4827f1"
  10. android:forceDarkAllowed="false"
  11. tools:context=".HomePage"
  12. android:fitsSystemWindows="true"
  13. tools:openDrawer="start"
  14. tools:targetApi="q">
  15.  
  16.  
  17. <com.google.android.material.navigation.NavigationView
  18. android:layout_width="wrap_content"
  19. android:layout_height="match_parent"
  20. android:id="@+id/nav_view"
  21. app:headerLayout="@layout/header"
  22. app:menu="@menu/main_menu"
  23. android:background="#4827f1"
  24. app:itemIconTint="@color/white"
  25. app:itemTextColor="@color/white"
  26. android:layout_gravity="start"
  27. android:visibility="gone"
  28. />
  29.  
  30.  
  31. <androidx.appcompat.widget.Toolbar
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:id="@+id/toolbar"
  35. app:itemIconTint="@color/white"
  36. android:background="#00008577"
  37. />
  38.  
  39.  
  40. <androidx.appcompat.widget.LinearLayoutCompat
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:orientation="vertical">
  44.  
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="@string/app_name"
  49. android:layout_gravity="center"
  50. android:textSize="60sp"
  51. android:layout_marginTop="40dp"
  52. android:textStyle="bold"
  53. android:textColor="@color/white"
  54. android:fontFamily="cursive" />
  55.  
  56. <androidx.appcompat.widget.AppCompatButton
  57. android:id="@+id/GetStart"
  58. android:layout_width="350dp"
  59. android:layout_height="50dp"
  60. android:paddingLeft="20dp"
  61. android:paddingRight="20dp"
  62. android:layout_marginTop="40dp"
  63. android:background="#eee86b"
  64. android:drawableEnd="@drawable/ic_arrow"
  65. android:text="@string/buongiorno_con_silente"
  66. android:textColor="#000000"
  67. android:layout_gravity="center"
  68. android:textSize="20sp"
  69. />
  70.  
  71. <androidx.recyclerview.widget.RecyclerView
  72. android:id="@+id/RecyclerViewBuongiorno"
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:padding="4dp"
  76. android:scrollbars="vertical"
  77. android:background="@color/white"
  78. />
  79.  
  80. <androidx.appcompat.widget.AppCompatButton
  81. android:id="@+id/augurio"
  82. android:layout_width="350dp"
  83. android:layout_height="50dp"
  84. android:paddingLeft="20dp"
  85. android:paddingRight="20dp"
  86. android:layout_marginTop="20dp"
  87. android:background="#eee86b"
  88. android:drawableEnd="@drawable/ic_arrow"
  89. android:text="@string/frasi_del_buon_augurio"
  90. android:textColor="#000000"
  91. android:layout_gravity="center"
  92. android:textSize="20sp"
  93. />
  94. </androidx.appcompat.widget.LinearLayoutCompat>
  95.  
  96. </androidx.drawerlayout.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement