image sized changed

This commit is contained in:
2020-11-14 21:28:38 +03:00
parent dc1520127f
commit 21c727ebee
4 changed files with 16 additions and 16 deletions

View File

@@ -60,24 +60,24 @@ public class SharedPrefsHelper {
} }
public static void saveIgnoredCategoryIdList(ArrayList<Integer> ignoredCategoryIdList){ public static void saveIgnoredCategoryIdList(ArrayList<Integer> ignoredCategoryIdList){
String ignoredCategoryIdsJsonString = gson.toJson(ignoredCategoryIdList, new TypeToken<ArrayList<Integer>>() {}.getType()); String ignoredCategoryIdsJsonString = gson.toJson(ignoredCategoryIdList, new TypeToken<ArrayList<String>>() {}.getType());
editor.putString(PREF_KEY_IGNORED_CATEGORY_ID_LIST, ignoredCategoryIdsJsonString); editor.putString(PREF_KEY_IGNORED_CATEGORY_ID_LIST, ignoredCategoryIdsJsonString);
editor.apply(); editor.apply();
} }
public static ArrayList<Integer> readIgnoredCategoryIdList(){ public static ArrayList<String> readIgnoredCategoryIdList(){
Type ignoredCategoryIdListType = new TypeToken<ArrayList<Integer>>(){}.getType(); Type ignoredCategoryIdListType = new TypeToken<ArrayList<String>>(){}.getType();
return gson.fromJson(sharedPreferences.getString(PREF_KEY_IGNORED_CATEGORY_ID_LIST, ""), ignoredCategoryIdListType); return gson.fromJson(sharedPreferences.getString(PREF_KEY_IGNORED_CATEGORY_ID_LIST, ""), ignoredCategoryIdListType);
} }
public static void savePizzaCategoryIdList(ArrayList<Integer> pizzaCategoryIdList){ public static void savePizzaCategoryIdList(ArrayList<Integer> pizzaCategoryIdList){
String ignoredCategoryIdsJsonString = gson.toJson(pizzaCategoryIdList, new TypeToken<ArrayList<Integer>>() {}.getType()); String ignoredCategoryIdsJsonString = gson.toJson(pizzaCategoryIdList, new TypeToken<ArrayList<String>>() {}.getType());
editor.putString(PREF_KEY_PIZZA_CATEGORY_ID_LIST, ignoredCategoryIdsJsonString); editor.putString(PREF_KEY_PIZZA_CATEGORY_ID_LIST, ignoredCategoryIdsJsonString);
editor.apply(); editor.apply();
} }
public static ArrayList<Integer> readPizzaCategoryIdList(){ public static ArrayList<String> readPizzaCategoryIdList(){
Type pizzaCategoryIdList = new TypeToken<ArrayList<Integer>>(){}.getType(); Type pizzaCategoryIdList = new TypeToken<ArrayList<String>>(){}.getType();
return gson.fromJson(sharedPreferences.getString(PREF_KEY_PIZZA_CATEGORY_ID_LIST, ""), pizzaCategoryIdList); return gson.fromJson(sharedPreferences.getString(PREF_KEY_PIZZA_CATEGORY_ID_LIST, ""), pizzaCategoryIdList);
} }

View File

@@ -49,8 +49,8 @@
<ImageView <ImageView
android:id="@+id/productImageView" android:id="@+id/productImageView"
android:layout_width="120dp" android:layout_width="160dp"
android:layout_height="120dp" android:layout_height="160dp"
android:layout_marginLeft="24dp" android:layout_marginLeft="24dp"
android:layout_marginStart="24dp" android:layout_marginStart="24dp"
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
@@ -74,10 +74,10 @@
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="18sp" android:textSize="18sp"
android:padding="12sp" android:padding="12sp"
android:text="Pizza Formaggio"
fontPath="fonts/Quicksand-Bold.ttf" fontPath="fonts/Quicksand-Bold.ttf"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" /> android:gravity="center"
tools:text="Pizza Formaggio"/>
<TextView <TextView
android:id="@+id/productPriceTextView" android:id="@+id/productPriceTextView"

View File

@@ -48,8 +48,8 @@
<ImageView <ImageView
android:id="@+id/productImageView" android:id="@+id/productImageView"
android:layout_width="120dp" android:layout_width="160dp"
android:layout_height="120dp" android:layout_height="160dp"
android:layout_marginLeft="24dp" android:layout_marginLeft="24dp"
android:layout_marginStart="24dp" android:layout_marginStart="24dp"
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
@@ -73,10 +73,10 @@
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="18sp" android:textSize="18sp"
android:padding="12sp" android:padding="12sp"
android:text="Pizza Formaggio"
fontPath="fonts/Quicksand-Bold.ttf" fontPath="fonts/Quicksand-Bold.ttf"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" /> android:gravity="center"
tools:text="Pizza Formaggio\nTeller"/>
<TextView <TextView
android:id="@+id/productPriceTextView" android:id="@+id/productPriceTextView"

View File

@@ -34,8 +34,8 @@
<!-- android:background="@color/transparent_white" --> <!-- android:background="@color/transparent_white" -->
<ImageView <ImageView
android:id="@+id/productImageView" android:id="@+id/productImageView"
android:layout_width="120dp" android:layout_width="140dp"
android:layout_height="120dp" android:layout_height="140dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:layout_marginEnd="12dp" android:layout_marginEnd="12dp"
android:layout_marginLeft="12dp" android:layout_marginLeft="12dp"