product change stock and price

This commit is contained in:
Gracia Hotmauli
2025-06-20 01:50:39 +07:00
parent 454498d6eb
commit 3c97b3b3de
10 changed files with 286 additions and 59 deletions

View File

@ -1,14 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
tools:context=".ui.profile.mystore.product.ChangePriceBottomSheetFragment">
tools:context=".ui.profile.mystore.product.ChangePriceBottomSheetFragment"
android:orientation="vertical">
<!-- TODO: Update blank fragment layout -->
<TextView
<include
android:id="@+id/header"
layout="@layout/header" />
<!-- Input Harga dengan Prefix "Rp" -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/bg_text_field"
android:layout_marginTop="10dp"
android:layout_marginHorizontal="16dp">
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Rp"
style="@style/label_medium_prominent"
android:textColor="@color/black_300"
android:padding="8dp" />
<EditText
android:id="@+id/edt_price"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:hint="Isi harga produk di sini"
android:inputType="number"
android:padding="8dp"
style="@style/body_small" />
</LinearLayout>
<Button
android:id="@+id/btn_save"
android:text="Simpan"
style="@style/button.large.active.long"
android:enabled="true"
android:layout_marginVertical="16dp"
android:layout_marginHorizontal="16dp"/>
</LinearLayout>

View File

@ -0,0 +1,62 @@
<?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"
tools:context=".ui.profile.mystore.product.ChangeStockBottomSheetFragment"
android:orientation="vertical">
<include
android:id="@+id/header"
layout="@layout/header" />
<!-- Input Harga dengan Prefix "Rp" -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/bg_text_field"
android:layout_marginTop="10dp"
android:layout_marginHorizontal="16dp"
android:gravity="center">
<ImageView
android:id="@+id/btn_minus"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="5dp"
android:src="@drawable/ic_minus"
android:clickable="true"
android:focusable="true"/>
<EditText
android:id="@+id/edt_stock"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@null"
android:hint="Isi stok produk di sini"
android:inputType="number"
android:padding="8dp"
style="@style/body_small" />
<ImageView
android:id="@+id/btn_plus"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="5dp"
android:src="@drawable/ic_add"
android:clickable="true"
android:focusable="true"/>
</LinearLayout>
<Button
android:id="@+id/btn_save"
android:text="Simpan"
style="@style/button.large.active.long"
android:enabled="true"
android:layout_marginVertical="16dp"
android:layout_marginHorizontal="16dp"/>
</LinearLayout>