fragment_shop.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.appcompat.widget.LinearLayoutCompat 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/color_black"
  8. android:orientation="vertical"
  9. tools:context=".screen.shop.ShopFragment">
  10. <androidx.cardview.widget.CardView
  11. android:layout_width="match_parent"
  12. android:layout_height="200dp"
  13. android:layout_marginTop="5dp"
  14. android:layout_marginBottom="5dp"
  15. app:cardCornerRadius="5dp">
  16. <FrameLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:background="@color/color_black">
  20. <ImageView
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:background="@drawable/default_background" />
  24. <View
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:background="#66000000" />
  28. </FrameLayout>
  29. <LinearLayout
  30. android:layout_width="wrap_content"
  31. android:layout_height="match_parent"
  32. android:layout_gravity="center"
  33. android:gravity="center"
  34. android:orientation="vertical">
  35. <TextView
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:text="@string/shope_title"
  39. android:textColor="@color/color_white"
  40. android:textSize="30sp"
  41. android:textStyle="bold|italic" />
  42. <TextView
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_gravity="center"
  46. android:gravity="center"
  47. android:text="@string/shope_title_2"
  48. android:textColor="@color/color_white"
  49. android:textSize="20sp"
  50. android:textStyle="italic" />
  51. </LinearLayout>
  52. </androidx.cardview.widget.CardView>
  53. <androidx.appcompat.widget.SearchView
  54. android:id="@+id/searchView"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:background="@color/color_white"
  58. android:queryHint="Search products..." />
  59. <androidx.recyclerview.widget.RecyclerView
  60. android:id="@+id/recyclerViewShop"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
  64. </androidx.appcompat.widget.LinearLayoutCompat>