bug fixes
This commit is contained in:
@@ -39,6 +39,7 @@ import ch.pizzalink.android.helper.ImageLoadHelper;
|
|||||||
import ch.pizzalink.android.helper.PriceHelper;
|
import ch.pizzalink.android.helper.PriceHelper;
|
||||||
import ch.pizzalink.android.helper.SessionHelper;
|
import ch.pizzalink.android.helper.SessionHelper;
|
||||||
import ch.pizzalink.android.helper.SharedPrefsHelper;
|
import ch.pizzalink.android.helper.SharedPrefsHelper;
|
||||||
|
import ch.pizzalink.android.helper.TextHelper;
|
||||||
import ch.pizzalink.android.interfaces.RecyclerItemClickListener;
|
import ch.pizzalink.android.interfaces.RecyclerItemClickListener;
|
||||||
import ch.pizzalink.android.model.AddProductToBasketResponseModel;
|
import ch.pizzalink.android.model.AddProductToBasketResponseModel;
|
||||||
import ch.pizzalink.android.model.AddToBasketOptionModel;
|
import ch.pizzalink.android.model.AddToBasketOptionModel;
|
||||||
@@ -61,6 +62,7 @@ public class ProductPropertiesActivity extends BaseActivity {
|
|||||||
@BindView(R.id.productImageView) ImageView productImageView;
|
@BindView(R.id.productImageView) ImageView productImageView;
|
||||||
@BindView(R.id.productNameTextView) TextView productNameTextView;
|
@BindView(R.id.productNameTextView) TextView productNameTextView;
|
||||||
@BindView(R.id.productPriceTextView) TextView productPriceTextView;
|
@BindView(R.id.productPriceTextView) TextView productPriceTextView;
|
||||||
|
@BindView(R.id.productDescriptionTextView) TextView productDescriptionTextView;
|
||||||
@BindView(R.id.addToCartButton) Button addToCartButton;
|
@BindView(R.id.addToCartButton) Button addToCartButton;
|
||||||
@BindView(R.id.radioRecyclerHeaderTextView) TextView radioRecyclerHeaderTextView;
|
@BindView(R.id.radioRecyclerHeaderTextView) TextView radioRecyclerHeaderTextView;
|
||||||
@BindView(R.id.radioRecyclerView) RecyclerView radioRecyclerView;
|
@BindView(R.id.radioRecyclerView) RecyclerView radioRecyclerView;
|
||||||
@@ -230,6 +232,7 @@ public class ProductPropertiesActivity extends BaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setFields(){
|
private void setFields(){
|
||||||
|
TextHelper.setTextFromHTML(productDescriptionTextView, menuProductModel.getDescription());
|
||||||
ImageLoadHelper.loadImage(productImageView, menuProductModel.getImageURL());
|
ImageLoadHelper.loadImage(productImageView, menuProductModel.getImageURL());
|
||||||
productNameTextView.setText(menuProductModel.getName());
|
productNameTextView.setText(menuProductModel.getName());
|
||||||
productPriceTextView.setText(PriceHelper.getPriceWithCurreny(menuProductModel.getPrice()));
|
productPriceTextView.setText(PriceHelper.getPriceWithCurreny(menuProductModel.getPrice()));
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ public class MenuProductModel implements Serializable {
|
|||||||
return ProductOptionType.RADIO_AND_CHECKBOX;
|
return ProductOptionType.RADIO_AND_CHECKBOX;
|
||||||
default:
|
default:
|
||||||
return ProductOptionType.NO_TYPE;
|
return ProductOptionType.NO_TYPE;
|
||||||
|
//return ProductOptionType.RADIO_AND_CHECKBOX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,19 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/productDescriptionTextView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:paddingTop="12dp"
|
||||||
|
android:paddingBottom="12dp"
|
||||||
|
android:paddingLeft="24dp"
|
||||||
|
android:paddingStart="24dp"
|
||||||
|
android:paddingRight="24dp"
|
||||||
|
android:paddingEnd="24dp"
|
||||||
|
android:textColor="@color/navy"
|
||||||
|
android:text="Mozzarella, Artischocken, Pilze, Peperoni, Oliven, Oregano"/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/addToCartButton"
|
android:id="@+id/addToCartButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/row_product_ingredients_background"
|
android:background="@color/row_product_ingredients_background"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:textColor="@android:color/black"
|
android:textColor="@color/navy"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:text="Mozzarella, Artischocken, Pilze, Peperoni, Oliven, Oregano"/>
|
android:text="Mozzarella, Artischocken, Pilze, Peperoni, Oliven, Oregano"/>
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
<string name="done_order">FERTIG</string>
|
<string name="done_order">FERTIG</string>
|
||||||
<string-array name="stepperLabels">
|
<string-array name="stepperLabels">
|
||||||
<item>Lieferungsart</item>
|
<item>Lieferungsart</item>
|
||||||
<item>Lieferungadresseadresse</item>
|
<item>Lieferungadresse</item>
|
||||||
<item>Bezahlverfahren</item>
|
<item>Bezahlverfahren</item>
|
||||||
<item>Nachricht</item>
|
<item>Nachricht</item>
|
||||||
<item>Betrag</item>
|
<item>Betrag</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user