-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#16 Add dummy invoice to generate PDF and reproduce the following bugs
- Loading branch information
Md Golam Kibria Emon
committed
Mar 1, 2021
1 parent
c6e9e3e
commit b366d96
Showing
3 changed files
with
140 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,160 +1,166 @@ | ||
<LinearLayout android:orientation="vertical" | ||
android:id="@+id/invoice_layout" | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="48dp" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<!-- Our Store Name--> | ||
<TextView | ||
android:layout_gravity="center" | ||
android:id="@+id/shop_name_invoice_tv" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:text="Our shop" /> | ||
|
||
<!--Our Address--> | ||
|
||
<!--Invoice Text--> | ||
<RelativeLayout | ||
android:id="@+id/invoice_text_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/shop_name_invoice_tv"> | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/invoice_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
android:padding="48dp"> | ||
<!-- Our Store Name--> | ||
<TextView | ||
|
||
android:id="@+id/shop_name_invoice_tv" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="24dp" | ||
android:text="INVOICE" /> | ||
android:layout_gravity="center" | ||
android:text="Our shop" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="24dp" | ||
android:text="Customer Copy" | ||
android:textSize="14sp" /> | ||
<!--24--> | ||
</RelativeLayout> | ||
|
||
<!-- Order Info--> | ||
<LinearLayout | ||
android:id="@+id/order_info_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/invoice_text_layout" | ||
android:layout_marginBottom="32dp" | ||
android:orientation="horizontal" | ||
android:weightSum="2"> | ||
<!--Our Address--> | ||
|
||
<!--user information--> | ||
<LinearLayout | ||
android:layout_width="0dp" | ||
<!--Invoice Text--> | ||
<RelativeLayout | ||
android:id="@+id/invoice_text_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:orientation="vertical" | ||
android:weightSum="3"> | ||
android:layout_below="@+id/shop_name_invoice_tv"> | ||
|
||
<TextView | ||
android:id="@+id/customer_shop_name_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:text="Customer shop name" /> | ||
|
||
<TextView | ||
android:id="@+id/customer_address_tv" | ||
|
||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="4dp" | ||
android:layout_weight="1" | ||
android:text="Address" /> | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="24dp" | ||
android:text="INVOICE" /> | ||
|
||
<TextView | ||
android:id="@+id/customer_phone_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="4dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentRight="true" | ||
android:layout_marginTop="8dp" | ||
android:layout_marginBottom="24dp" | ||
android:text="Customer Copy" | ||
android:textSize="14sp" /> | ||
<!--24--> | ||
</RelativeLayout> | ||
|
||
<!-- Order Info--> | ||
<LinearLayout | ||
android:id="@+id/order_info_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/invoice_text_layout" | ||
android:layout_marginBottom="32dp" | ||
android:orientation="horizontal" | ||
android:weightSum="2"> | ||
|
||
<!--user information--> | ||
<LinearLayout | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="Phone number" /> | ||
android:orientation="vertical" | ||
android:weightSum="3"> | ||
|
||
<TextView | ||
android:id="@+id/customer_shop_name_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:text="Customer shop name" /> | ||
|
||
<TextView | ||
android:id="@+id/customer_address_tv" | ||
|
||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="4dp" | ||
android:layout_weight="1" | ||
android:text="Address" /> | ||
|
||
<TextView | ||
android:id="@+id/customer_phone_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="4dp" | ||
android:layout_weight="1" | ||
android:text="Phone number" /> | ||
|
||
</LinearLayout> | ||
|
||
<!--Date Time--> | ||
<LinearLayout | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:orientation="vertical" | ||
android:weightSum="2"> | ||
|
||
<TextView | ||
android:id="@+id/customer_order_date_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_weight="1" | ||
android:gravity="end" | ||
android:text="Order date" /> | ||
|
||
<TextView | ||
android:id="@+id/our_delivery_date_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="4dp" | ||
android:layout_weight="1" | ||
android:gravity="end" | ||
android:text="Delivery Date" /> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<!--Date Time--> | ||
<!--Product List--> | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/invoice_rv" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/order_info_layout" | ||
android:background="@color/colorPrimary" | ||
android:padding="1dp" /> | ||
|
||
<!-- Signature Layout--> | ||
<LinearLayout | ||
android:layout_width="0dp" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:orientation="vertical" | ||
android:weightSum="2"> | ||
android:layout_alignParentBottom="true" | ||
android:layout_gravity="bottom" | ||
android:layout_marginTop="@dimen/_300sdp" | ||
android:gravity="bottom" | ||
android:orientation="horizontal" | ||
android:weightSum="3"> | ||
|
||
<TextView | ||
android:id="@+id/customer_order_date_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:gravity="end" | ||
android:text="Order date" /> | ||
android:text="Customer Signature" /> | ||
|
||
<TextView | ||
android:id="@+id/our_delivery_date_tv" | ||
android:layout_width="match_parent" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="4dp" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:gravity="end" | ||
android:text="Delivery Date" /> | ||
android:gravity="center" | ||
android:text="Prepared By" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:gravity="end" | ||
android:text="Authorized Signature" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<!--Product List--> | ||
<androidx.recyclerview.widget.RecyclerView | ||
android:id="@+id/invoice_rv" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/_200sdp" | ||
android:layout_below="@+id/order_info_layout" | ||
android:background="@color/colorPrimary" | ||
android:padding="1dp" /> | ||
|
||
<!-- Signature Layout--> | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_alignParentBottom="true" | ||
android:layout_gravity="bottom" | ||
android:gravity="bottom" | ||
android:layout_marginTop="48dp" | ||
android:orientation="horizontal" | ||
android:weightSum="3"> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="Customer Signature" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:text="Prepared By" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:gravity="end" | ||
android:text="Authorized Signature" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
</ScrollView> |