Advertisement
last63

Untitled

Mar 28th, 2022
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. xmlns:app="http://schemas.android.com/apk/res-auto"
  7. android:orientation="vertical"
  8. tools:context=".ui.home.HomeFragment">
  9.  
  10. <RelativeLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:padding="10dp"
  14. android:background="@color/teal_200">
  15.  
  16. <androidx.cardview.widget.CardView
  17. android:layout_toLeftOf="@id/icn_chat"
  18. android:layout_width="match_parent"
  19. android:layout_marginRight="5dp"
  20. android:layout_height="35dp"
  21. app:cardCornerRadius="17dp">
  22.  
  23. <LinearLayout
  24. android:gravity="center_vertical"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:orientation="horizontal">
  28.  
  29. <ImageView
  30. android:layout_marginLeft="8dp"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:src="@drawable/ic_baseline_search_24"/>
  34.  
  35. <TextView
  36. android:layout_marginLeft="7dp"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:hint="Cari produk"/>
  40.  
  41. </LinearLayout>
  42.  
  43. </androidx.cardview.widget.CardView>
  44.  
  45. <ImageView
  46. android:id="@+id/icn_chat"
  47. android:layout_width="30dp"
  48. android:layout_height="30dp"
  49. android:layout_alignParentRight="true"
  50. android:layout_centerVertical="true"
  51. android:layout_marginLeft="8dp"
  52. android:src="@drawable/ic_baseline_chat_24" />
  53.  
  54. </RelativeLayout>
  55.  
  56. <androidx.core.widget.NestedScrollView
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent">
  59.  
  60. <LinearLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:layout_marginBottom="10dp"
  64. android:orientation="vertical">
  65.  
  66. <androidx.viewpager.widget.ViewPager
  67. android:id="@+id/vp_slider"
  68. android:layout_width="match_parent"
  69. android:layout_height="170dp" />
  70.  
  71. <LinearLayout
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:orientation="vertical">
  75.  
  76. <TextView
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:text="Baju IT Keren"
  80. android:textStyle="bold"
  81. android:textColor="#FF0000"
  82. android:textSize="16sp"/>
  83.  
  84. <androidx.recyclerview.widget.RecyclerView
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:id="@+id/rv_baju"/>
  88.  
  89. </LinearLayout>
  90. </LinearLayout>
  91.  
  92. </androidx.core.widget.NestedScrollView>
  93.  
  94.  
  95.  
  96.  
  97. </LinearLayout>
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement