0% found this document useful (0 votes)
30 views13 pages

Coding Tenun

The document is an XML layout file for an Android app. It defines the user interface for the app's main activity. The layout includes a navigational bar at the top with a title and search button. Below is a scrollable content area with an image splash, product details, and a row of menu options along the bottom.

Uploaded by

Rohit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views13 pages

Coding Tenun

The document is an XML layout file for an Android app. It defines the user interface for the app's main activity. The layout includes a navigational bar at the top with a title and search button. Below is a scrollable content area with an image splash, product details, and a row of menu options along the bottom.

Uploaded by

Rohit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

<?xml version="1.0" encoding="utf-8"?

>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="#efefef"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">
<!--navigasi bar-->
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content">

<LinearLayout
android:background="@color/design_default_color_primary"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textColor="@color/white"
android:textSize="19dp"
android:textStyle="bold"
android:text="Tenun Store"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<RelativeLayout
android:layout_width="20dp"
android:layout_height="match_parent"/>
<Button
android:layout_weight="1"
android:textColor="@color/black"
android:backgroundTint="@color/white"
android:gravity="left|center_vertical"
android:drawableStart="@drawable/ic_cari"
android:textAllCaps="false"
android:text="Search..."
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RelativeLayout
android:layout_width="10dp"
android:layout_height="match_parent"/>
<androidx.cardview.widget.CardView
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
app:cardCornerRadius="5dp"
android:layout_gravity="center_vertical"
android:layout_width="36dp"
android:layout_height="36dp">
<Button
android:layout_gravity="center"
android:background="@drawable/ic_baseline_favorite_border_24"
android:layout_width="30dp"
android:layout_height="30dp"/>
</androidx.cardview.widget.CardView>
<RelativeLayout
android:layout_width="15dp"
android:layout_height="match_parent"/>

</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<!--header-->
<ScrollView
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@drawable/header" />
<!--spalsh-->
<LinearLayout
android:padding="10dp"
android:orientation="horizontal"
android:layout_marginRight="15dp"
android:layout_marginLeft="15dp"
android:layout_marginTop="-80dp"
android:background="@drawable/splash"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_marginTop="15dp"
android:adjustViewBounds="true"
android:cropToPadding="true"
android:src="@drawable/tenun3"
android:layout_width="140dp"
android:layout_height="100dp"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:padding="10dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_marginLeft="5dp"
android:textStyle="bold"
android:text="Khusus hari ini"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:layout_marginLeft="5dp"
android:layout_marginTop="10dp"
android:textSize="20dp"
android:textStyle="bold"
android:text="Kain Srinanti"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:layout_marginLeft="5dp"
android:layout_marginTop="2dp"
android:textSize="12dp"
android:textStyle="bold"
android:text="Rp. 500.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:backgroundTint="#565656"
android:layout_marginLeft="5dp"
android:textColor="@color/white"
android:textAllCaps="false"
android:text="Beli sekarang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>

</LinearLayout>
<!--Menu-->
<LinearLayout
android:padding="15dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Card Menu-->
<LinearLayout
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:background="@drawable/menu"
android:padding="20dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:adjustViewBounds="true"
android:cropToPadding="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/category" />
</LinearLayout>
<TextView
android:layout_marginTop="10dp"
android:text="Kategori"
android:textSize="12dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

</LinearLayout>
<RelativeLayout
android:layout_width="20dp"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:background="@drawable/menu"
android:padding="20dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:adjustViewBounds="true"
android:cropToPadding="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/star" />
</LinearLayout>
<TextView
android:layout_marginTop="10dp"
android:text="Favorit"
android:textSize="12dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

</LinearLayout>
<RelativeLayout
android:layout_width="20dp"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:background="@drawable/menu"
android:padding="20dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:adjustViewBounds="true"
android:cropToPadding="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/discount" />
</LinearLayout>
<TextView
android:layout_marginTop="10dp"
android:text="Discount"
android:textSize="12dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

</LinearLayout>
<RelativeLayout
android:layout_width="20dp"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:background="@drawable/menu"
android:padding="20dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:adjustViewBounds="true"
android:cropToPadding="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/megaphone" />
</LinearLayout>
<TextView
android:layout_marginTop="10dp"
android:text="Promo"
android:textSize="12dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="10dp"/>
<LinearLayout
android:padding="15dp"
android:background="@drawable/khusus"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--Title Swip-->
<LinearLayout
android:layout_marginBottom="20dp"
android:layout_marginRight="15dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textColor="@color/white"
android:layout_weight="1"
android:textStyle="bold"
android:textSize="20dp"
android:text="Produk Terbaru"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:textColor="@color/white"
android:textAllCaps="false"
android:backgroundTint="@color/design_default_color_primary"
android:text="View All"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<HorizontalScrollView
android:padding="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!--card produk-->
<LinearLayout

android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="120dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun1"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="10dp"
android:layout_height="wrap_content"/>
<!--card produk-->
<LinearLayout

android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="120dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun2"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>

<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:cropToPadding="false"
android:src="@drawable/tenun3" />
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="10dp"
android:layout_height="wrap_content"/>
<!--card produk-->
<LinearLayout

android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="120dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun2"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="10dp"
android:layout_height="wrap_content"/>
<!--card produk-->
<LinearLayout

android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="120dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun4"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="10dp"
android:layout_height="wrap_content"/>
<!--card produk-->
<LinearLayout

android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="120dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun5"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
<!--Produk Lainnya-->
<LinearLayout
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_marginRight="15dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:background="@drawable/dua"
android:textColor="@color/black"
android:layout_weight="1"
android:textStyle="bold"
android:textSize="20dp"
android:text="Produk Lainnya"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:textColor="@color/white"
android:textAllCaps="false"
android:backgroundTint="@color/design_default_color_primary"
android:text="View All"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:padding="15dp"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--card produk-->
<LinearLayout
android:layout_marginTop="15dp"
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun1"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="15dp"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_marginBottom="15dp"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="300dp">
<LinearLayout
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:padding="5dp"
android:background="@drawable/card_produk"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
app:cardCornerRadius="5dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:cropToPadding="false"
android:adjustViewBounds="true"
android:src="@drawable/tenun2"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</LinearLayout>
<LinearLayout
android:layout_marginTop="5dp"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:textSize="12dp"
android:text="Kain Gajah Mada"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:textStyle="bold"
android:text="Rp.450.000"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
<com.google.android.material.bottomnavigation.BottomNavigationView
app:labelVisibilityMode="labeled"
app:menu="@menu/item_bottom_navigation"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>

You might also like