main_bottom_sheet.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout 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. android:id="@+id/bottomSheet"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
  9. app:behavior_hideable="false"
  10. app:behavior_peekHeight="60dp"
  11. tools:context=".MainActivity">
  12. <androidx.cardview.widget.CardView
  13. android:id="@+id/optionsView"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. app:cardBackgroundColor="?android:attr/colorBackground"
  17. app:cardCornerRadius="0dp"
  18. app:cardElevation="4dp">
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:orientation="vertical">
  23. <View
  24. android:id="@+id/view"
  25. android:layout_width="match_parent"
  26. android:layout_height="1dp"
  27. android:alpha="0.1"
  28. android:background="?android:attr/colorForeground" />
  29. <TextView
  30. android:id="@+id/textView"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_margin="16dp"
  34. android:text="@string/main_slim_options"
  35. app:layout_constraintStart_toStartOf="parent"
  36. app:layout_constraintTop_toTopOf="parent" />
  37. <TextView
  38. android:id="@+id/deviceSettingsText"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_margin="16dp"
  42. android:text="@string/main_options_settings"
  43. android:textSize="24sp" />
  44. <TextView
  45. android:id="@+id/settingsText"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_margin="16dp"
  49. android:text="@string/main_options_home_screen_apps"
  50. android:textSize="24sp" />
  51. <TextView
  52. android:id="@+id/changeLauncherText"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_margin="16dp"
  56. android:text="@string/main_options_change_launcher"
  57. android:textSize="24sp" />
  58. <TextView
  59. android:id="@+id/rateAppText"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_margin="16dp"
  63. android:text="@string/main_options_feedback"
  64. android:textSize="24sp" />
  65. <TextView
  66. android:id="@+id/aboutText"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:layout_margin="16dp"
  70. android:text="@string/main_options_about_slim"
  71. android:textSize="24sp" />
  72. </LinearLayout>
  73. </androidx.cardview.widget.CardView>
  74. <androidx.constraintlayout.widget.ConstraintLayout
  75. android:id="@+id/iconTray"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:alpha="0.6">
  79. <ImageView
  80. android:id="@+id/ivCall"
  81. android:layout_width="0dp"
  82. android:layout_height="wrap_content"
  83. android:layout_marginStart="8dp"
  84. android:layout_marginLeft="8dp"
  85. android:contentDescription="@string/main_call_icon"
  86. android:padding="16dp"
  87. app:layout_constraintStart_toStartOf="parent"
  88. app:layout_constraintTop_toTopOf="parent"
  89. app:srcCompat="@drawable/ic_call" />
  90. <ImageView
  91. android:id="@+id/ivExpand"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_marginStart="8dp"
  95. android:layout_marginLeft="8dp"
  96. android:layout_marginEnd="8dp"
  97. android:layout_marginRight="8dp"
  98. android:contentDescription="@string/main_slim_options"
  99. android:padding="16dp"
  100. app:layout_constraintEnd_toStartOf="@+id/ivCamera"
  101. app:layout_constraintStart_toEndOf="@+id/ivCall"
  102. app:layout_constraintTop_toTopOf="parent"
  103. app:srcCompat="@drawable/ic_expand" />
  104. <ImageView
  105. android:id="@+id/ivCamera"
  106. android:layout_width="wrap_content"
  107. android:layout_height="wrap_content"
  108. android:layout_marginEnd="8dp"
  109. android:layout_marginRight="8dp"
  110. android:contentDescription="@string/main_photo_camera_icon"
  111. android:padding="16dp"
  112. app:layout_constraintEnd_toEndOf="parent"
  113. app:layout_constraintTop_toTopOf="parent"
  114. app:srcCompat="@drawable/ic_photo_camera" />
  115. </androidx.constraintlayout.widget.ConstraintLayout>
  116. </FrameLayout>