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>
|
||||
</option>
|
||||
</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" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -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