image sized changed
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user