product count on order summary fixed
This commit is contained in:
@@ -45,7 +45,7 @@ public class ProductOnOrderSummaryRecyclerAdapter extends RecyclerView.Adapter<P
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(ProductOnOrderSummaryRecyclerAdapter.ViewHolder holder, int position) {
|
||||
holder.productCountTextView.setText(cartProductList.get(position).getQuantity() + " x ");
|
||||
holder.productCountTextView.setText(cartProductList.get(position).getQuantity());
|
||||
holder.productNameTextView.setText(cartProductList.get(position).getName());
|
||||
holder.productPriceTextView.setText(PriceHelper.roundFractions(cartProductList.get(position).getTotal()));
|
||||
setCartInfoText(holder.productPropertiesTextView, cartProductList.get(position));
|
||||
|
||||
@@ -13,21 +13,37 @@
|
||||
android:paddingRight="4dp"
|
||||
android:paddingEnd="4dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/productCountTextView"
|
||||
<LinearLayout
|
||||
android:id="@+id/productCountLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/red"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
fontPath="fonts/Quicksand-Bold.ttf" />
|
||||
android:layout_alignParentStart="true">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/productCountTextView"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/red"
|
||||
fontPath="fonts/Quicksand-Bold.ttf" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/red"
|
||||
android:text="x"
|
||||
fontPath="fonts/Quicksand-Bold.ttf" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_toRightOf="@+id/productCountTextView"
|
||||
android:layout_toEndOf="@+id/productCountTextView"
|
||||
android:layout_toRightOf="@+id/productCountLayout"
|
||||
android:layout_toEndOf="@+id/productCountLayout"
|
||||
android:layout_toLeftOf="@+id/productPriceTextView"
|
||||
android:layout_toStartOf="@+id/productPriceTextView"
|
||||
android:layout_marginLeft="24dp"
|
||||
|
||||
Reference in New Issue
Block a user