Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
- tools:context=".ui.home.HomeFragment">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dp"
- android:background="@color/teal_200">
- <androidx.cardview.widget.CardView
- android:layout_toLeftOf="@id/icn_chat"
- android:layout_width="match_parent"
- android:layout_marginRight="5dp"
- android:layout_height="35dp"
- app:cardCornerRadius="17dp">
- <LinearLayout
- android:gravity="center_vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <ImageView
- android:layout_marginLeft="8dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_baseline_search_24"/>
- <TextView
- android:layout_marginLeft="7dp"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="Cari produk"/>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <ImageView
- android:id="@+id/icn_chat"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="8dp"
- android:src="@drawable/ic_baseline_chat_24" />
- </RelativeLayout>
- <androidx.core.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:orientation="vertical">
- <androidx.viewpager.widget.ViewPager
- android:id="@+id/vp_slider"
- android:layout_width="match_parent"
- android:layout_height="170dp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Baju IT Keren"
- android:textStyle="bold"
- android:textColor="#FF0000"
- android:textSize="16sp"/>
- <androidx.recyclerview.widget.RecyclerView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:id="@+id/rv_baju"/>
- </LinearLayout>
- </LinearLayout>
- </androidx.core.widget.NestedScrollView>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement