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){
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.apply();
}
public static ArrayList<Integer> readIgnoredCategoryIdList(){
Type ignoredCategoryIdListType = new TypeToken<ArrayList<Integer>>(){}.getType();
public static ArrayList<String> readIgnoredCategoryIdList(){
Type ignoredCategoryIdListType = new TypeToken<ArrayList<String>>(){}.getType();
return gson.fromJson(sharedPreferences.getString(PREF_KEY_IGNORED_CATEGORY_ID_LIST, ""), ignoredCategoryIdListType);
}
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.apply();
}
public static ArrayList<Integer> readPizzaCategoryIdList(){
Type pizzaCategoryIdList = new TypeToken<ArrayList<Integer>>(){}.getType();
public static ArrayList<String> readPizzaCategoryIdList(){
Type pizzaCategoryIdList = new TypeToken<ArrayList<String>>(){}.getType();
return gson.fromJson(sharedPreferences.getString(PREF_KEY_PIZZA_CATEGORY_ID_LIST, ""), pizzaCategoryIdList);
}

View File

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

View File

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

View File

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