main_bottom_sheet.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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:behavior_hideable="false"
  9. app:behavior_peekHeight="60dp"
  10. app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
  11. tools:context="com.sduduzog.slimlauncher.ui.main.MainFragment">
  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_marginStart="16dp"
  34. android:layout_marginLeft="16dp"
  35. android:layout_marginTop="24dp"
  36. android:text="@string/main_slim_options"
  37. app:layout_constraintStart_toStartOf="parent"
  38. app:layout_constraintTop_toTopOf="parent" />
  39. <TextView
  40. android:id="@+id/textView12"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_margin="8dp"
  44. android:padding="8dp"
  45. android:text="@string/main_options_text_notes"
  46. android:textSize="24sp" />
  47. <TextView
  48. android:id="@+id/settingsText"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_margin="8dp"
  52. android:padding="8dp"
  53. android:text="@string/main_options_home_screen_apps"
  54. android:textSize="24sp" />
  55. <TextView
  56. android:id="@+id/deviceSettingsText"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_margin="8dp"
  60. android:padding="8dp"
  61. android:text="@string/main_options_settings"
  62. android:textSize="24sp" />
  63. <TextView
  64. android:id="@+id/changeLauncherText"
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:layout_margin="8dp"
  68. android:padding="8dp"
  69. android:text="@string/main_options_change_launcher"
  70. android:textSize="24sp" />
  71. <TextView
  72. android:id="@+id/rateAppText"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_margin="8dp"
  76. android:padding="8dp"
  77. android:text="@string/main_options_feedback"
  78. android:textSize="24sp" />
  79. <TextView
  80. android:id="@+id/aboutText"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_margin="8dp"
  84. android:padding="8dp"
  85. android:text="@string/main_options_about_slim"
  86. android:textSize="24sp" />
  87. </LinearLayout>
  88. </androidx.cardview.widget.CardView>
  89. <androidx.constraintlayout.widget.ConstraintLayout
  90. android:id="@+id/iconTray"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:alpha="0.6">
  94. <ImageView
  95. android:id="@+id/ivCall"
  96. android:layout_width="0dp"
  97. android:layout_height="wrap_content"
  98. android:layout_marginStart="8dp"
  99. android:contentDescription="@string/main_call_icon"
  100. android:padding="16dp"
  101. app:layout_constraintStart_toStartOf="parent"
  102. app:layout_constraintTop_toTopOf="parent"
  103. app:srcCompat="@drawable/ic_call"
  104. android:layout_marginLeft="8dp" />
  105. <ImageView
  106. android:id="@+id/ivCamera"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_marginEnd="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. android:layout_marginRight="8dp" />
  116. </androidx.constraintlayout.widget.ConstraintLayout>
  117. </FrameLayout>