product count on order summary fixed
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -25,7 +25,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="JDK" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class ProductOnOrderSummaryRecyclerAdapter extends RecyclerView.Adapter<P
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(ProductOnOrderSummaryRecyclerAdapter.ViewHolder holder, int position) {
|
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.productNameTextView.setText(cartProductList.get(position).getName());
|
||||||
holder.productPriceTextView.setText(PriceHelper.roundFractions(cartProductList.get(position).getTotal()));
|
holder.productPriceTextView.setText(PriceHelper.roundFractions(cartProductList.get(position).getTotal()));
|
||||||
setCartInfoText(holder.productPropertiesTextView, cartProductList.get(position));
|
setCartInfoText(holder.productPropertiesTextView, cartProductList.get(position));
|
||||||
|
|||||||
@@ -13,21 +13,37 @@
|
|||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
android:paddingEnd="4dp">
|
android:paddingEnd="4dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/productCountLayout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentStart="true">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/productCountTextView"
|
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_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textColor="@color/red"
|
android:textColor="@color/red"
|
||||||
android:layout_alignParentLeft="true"
|
android:text="x"
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
fontPath="fonts/Quicksand-Bold.ttf" />
|
fontPath="fonts/Quicksand-Bold.ttf" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<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:orientation="vertical"
|
||||||
android:layout_toRightOf="@+id/productCountTextView"
|
android:layout_toRightOf="@+id/productCountLayout"
|
||||||
android:layout_toEndOf="@+id/productCountTextView"
|
android:layout_toEndOf="@+id/productCountLayout"
|
||||||
android:layout_toLeftOf="@+id/productPriceTextView"
|
android:layout_toLeftOf="@+id/productPriceTextView"
|
||||||
android:layout_toStartOf="@+id/productPriceTextView"
|
android:layout_toStartOf="@+id/productPriceTextView"
|
||||||
android:layout_marginLeft="24dp"
|
android:layout_marginLeft="24dp"
|
||||||
|
|||||||
Reference in New Issue
Block a user