mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-13 10:42:21 +00:00
activity_add_product.xml
This commit is contained in:
BIN
app/src/main/res/drawable/ic_down.png
Normal file
BIN
app/src/main/res/drawable/ic_down.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 426 B |
@ -149,21 +149,36 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<EditText
|
<!-- Spinner Dropdown dengan Chevron -->
|
||||||
android:id="@+id/KategoriProduk"
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/border"
|
android:orientation="horizontal"
|
||||||
android:hint="Masukkan teks..."
|
android:background="@drawable/bg_text_field"
|
||||||
android:padding="8dp"
|
android:gravity="center_vertical"
|
||||||
android:textSize="14sp"
|
android:layout_marginTop="10dp">
|
||||||
android:textColorHint="#C4C4C7"
|
|
||||||
android:layout_marginTop="@dimen/space_m"/>
|
|
||||||
|
|
||||||
|
<Spinner
|
||||||
|
android:id="@+id/spinner_kategori_produk"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:padding="8dp"
|
||||||
|
style="@style/body_small"
|
||||||
|
android:background="@null"/>
|
||||||
|
|
||||||
|
<!-- Chevron Down Icon -->
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="16dp"
|
||||||
|
android:layout_height="16dp"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_down"
|
||||||
|
android:contentDescription="Chevron Down" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- Deskripsi Produk -->
|
<!-- Deskripsi Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -171,49 +186,43 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Deskripsi Produk"
|
android:text="Deskripsi Produk"
|
||||||
android:textStyle="bold"
|
style="@style/body_medium"
|
||||||
android:layout_marginRight="4dp"/>
|
android:layout_marginEnd="4dp"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="*"
|
||||||
android:textColor="@color/red"
|
style="@style/body_medium"
|
||||||
|
android:textColor="@color/red_required"
|
||||||
android:layout_gravity="end"/>
|
android:layout_gravity="end"/>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/DeskripsiProduk"
|
android:id="@+id/DeskripsiProduk"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="70dp"
|
||||||
android:background="@drawable/border"
|
android:background="@drawable/bg_text_field"
|
||||||
android:hint="Masukkan teks..."
|
android:hint="Isi deskripsi produk di sini"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:textSize="14sp"
|
style="@style/body_small"
|
||||||
android:textColorHint="#C4C4C7"
|
android:inputType="text|textMultiLine"
|
||||||
android:layout_marginTop="@dimen/space_m"
|
android:gravity="top"
|
||||||
/>
|
android:layout_marginTop="10dp"/>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- Harga Produk -->
|
<!-- Harga Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -221,116 +230,100 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
|
||||||
<!-- Label Harga Produk -->
|
<!-- Label Harga Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Harga Produk"
|
android:text="Harga Produk"
|
||||||
android:textStyle="bold"
|
style="@style/body_medium"
|
||||||
android:layout_marginRight="4dp"/>
|
android:layout_marginRight="4dp"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="*"
|
||||||
android:textColor="@color/red"
|
style="@style/body_medium"
|
||||||
|
android:textColor="@color/red_required"
|
||||||
android:layout_gravity="end"/>
|
android:layout_gravity="end"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- Input Harga dengan Prefix "Rp" -->
|
<!-- Input Harga dengan Prefix "Rp" -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:background="@drawable/border"
|
android:background="@drawable/bg_text_field"
|
||||||
android:layout_marginTop="@dimen/space_m">
|
android:layout_marginTop="10dp">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Rp"
|
android:text="Rp"
|
||||||
android:textSize="14sp"
|
style="@style/label_medium_prominent"
|
||||||
android:textStyle="bold"
|
android:textColor="@color/black_300"
|
||||||
android:textColor="@color/black_100"
|
|
||||||
android:padding="8dp" />
|
android:padding="8dp" />
|
||||||
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/HargaProduk"
|
android:id="@+id/edt_harga_produk"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:hint="Masukkan harga..."
|
android:hint="Isi harga produk di sini"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:textColorHint="#C4C4C7"
|
style="@style/body_small" />
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- Stok Produk -->
|
<!-- Stok Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:layout_marginBottom="24dp"
|
||||||
android:layout_marginBottom="24dp">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
android:text="Stok Produk"
|
android:text="Stok Produk"
|
||||||
android:textStyle="bold"
|
style="@style/body_medium" />
|
||||||
android:layout_marginRight="4dp"/>
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="end"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="*"
|
||||||
android:textColor="@color/red"
|
style="@style/body_medium"
|
||||||
android:layout_gravity="end"/>
|
android:textColor="@color/red_required" />
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/StokProduk"
|
android:id="@+id/edt_stok_produk"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/border"
|
android:layout_marginTop="10dp"
|
||||||
android:hint="Masukkan teks..."
|
android:background="@drawable/bg_text_field"
|
||||||
|
android:hint="Isi stok produk di sini"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:textSize="14sp"
|
style="@style/body_small" />
|
||||||
android:textColorHint="#C4C4C7"
|
|
||||||
android:layout_marginTop="@dimen/space_m"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Minimum Pemesanan -->
|
<!-- Minimum Pemesanan -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -339,46 +332,40 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Minimum Pemesanan"
|
android:text="Minimum Pemesanan"
|
||||||
android:textStyle="bold"
|
style="@style/body_medium"
|
||||||
android:layout_marginRight="4dp"/>
|
android:layout_marginEnd="4dp"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="*"
|
||||||
android:textColor="@color/red"
|
style="@style/body_medium"
|
||||||
|
android:textColor="@color/red_required"
|
||||||
android:layout_gravity="end"/>
|
android:layout_gravity="end"/>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/MinimumPemesanan"
|
android:id="@+id/edt_min_order"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/border"
|
android:background="@drawable/bg_text_field"
|
||||||
android:hint="Masukkan teks..."
|
android:hint="Isi minimum pemesanan produk di sini"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:textSize="14sp"
|
style="@style/body_small"
|
||||||
android:textColorHint="#C4C4C7"
|
android:layout_marginTop="10dp" />
|
||||||
android:layout_marginTop="@dimen/space_m"
|
|
||||||
/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Berat Produk -->
|
<!-- Berat Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -387,20 +374,18 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
|
||||||
<!-- Label Berat Produk -->
|
<!-- Label Berat Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Berat Produk"
|
android:text="Berat Produk"
|
||||||
android:textStyle="bold"
|
style="@style/body_medium"
|
||||||
android:layout_marginRight="4dp"/>
|
android:layout_marginEnd="4dp"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -408,48 +393,43 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="*"
|
||||||
android:textColor="@color/red"
|
style="@style/body_medium"
|
||||||
|
android:textColor="@color/red_required"
|
||||||
android:layout_gravity="end"/>
|
android:layout_gravity="end"/>
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Input Berat dengan Suffix "gram" -->
|
<!-- Input Berat dengan Suffix "gram" -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:background="@drawable/border">
|
android:background="@drawable/bg_text_field"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/BeratProduk"
|
android:id="@+id/edt_berat_produk"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:hint="Masukkan berat..."
|
android:hint="Isi berat produk di sini"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:textSize="14sp"
|
style="@style/body_small"
|
||||||
android:textColorHint="#C4C4C7"
|
|
||||||
android:background="@null"
|
android:background="@null"
|
||||||
android:padding="8dp"/>
|
android:padding="8dp"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="gram"
|
android:text="gram"
|
||||||
android:textSize="14sp"
|
style="@style/label_medium_prominent"
|
||||||
android:textStyle="bold"
|
android:textColor="@color/black_300"
|
||||||
android:textColor="@color/black_100"
|
|
||||||
android:padding="8dp"/>
|
android:padding="8dp"/>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- Kondisi Produk -->
|
<!-- Kondisi Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -457,64 +437,60 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
|
||||||
<!-- Label Kondisi Produk -->
|
<!-- Label Kondisi Produk -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Kondisi Produk"
|
android:text="Kondisi Produk"
|
||||||
android:textStyle="bold"
|
style="@style/body_medium"
|
||||||
android:layout_marginRight="4dp"/>
|
android:layout_marginEnd="4dp"/>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="*"
|
||||||
android:textColor="@color/red"
|
style="@style/body_medium"
|
||||||
|
android:textColor="@color/red_required"
|
||||||
android:layout_gravity="end"/>
|
android:layout_gravity="end"/>
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Spinner Dropdown dengan Chevron -->
|
<!-- Spinner Dropdown dengan Chevron -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:background="@drawable/border"
|
android:background="@drawable/bg_text_field"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_marginTop="@dimen/space_m">
|
android:layout_marginTop="10dp">
|
||||||
|
|
||||||
|
|
||||||
<Spinner
|
<Spinner
|
||||||
android:id="@+id/KondisiProduk"
|
android:id="@+id/spinner_kondisi_produk"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
|
style="@style/body_small"
|
||||||
android:background="@null"/>
|
android:background="@null"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Chevron Down Icon -->
|
<!-- Chevron Down Icon -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="16dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="16dp"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/down"
|
android:src="@drawable/ic_down"
|
||||||
android:contentDescription="Chevron Down" />
|
android:contentDescription="Chevron Down" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<!-- Produk Aktif -->
|
<!-- Produk Aktif -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -522,52 +498,35 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_marginBottom="24dp">
|
android:layout_marginBottom="24dp">
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Produk Aktif"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:layout_marginRight="4dp"/>
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:text="*"
|
android:text="Produk Aktif"
|
||||||
android:layout_gravity="end"/>
|
style="@style/body_medium"
|
||||||
|
android:layout_marginEnd="4dp"/>
|
||||||
|
|
||||||
<Switch
|
<Switch
|
||||||
android:id="@+id/ProdukAktif"
|
android:id="@+id/switch_is_active"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="end"/>
|
android:layout_gravity="end"
|
||||||
|
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnSubmit"
|
android:id="@+id/btn_save_product"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Simpan Produk"
|
android:text="Simpan Produk"
|
||||||
android:textColor="@color/white"
|
style="@style/button.large.disabled.long"/>
|
||||||
android:backgroundTint="@color/blue_500"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textAllCaps="false"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user