diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/camera/CameraActivity.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/camera/CameraActivity.java
index 4f6c0ed2..62817522 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/camera/CameraActivity.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/camera/CameraActivity.java
@@ -140,7 +140,7 @@ private void handleButtonCapture()
{
captureButton.setVisibility(View.GONE);
photoCaptured = true;
- captureButton.setImageResource(R.drawable.ic_check_white_48dp);
+ captureButton.setImageResource(R.drawable.ic_check_white_48sp);
flashButton.animate().alpha(0.0f).setDuration(500L);
camera.takePicture(null, null, mPicture);
}
@@ -180,7 +180,7 @@ private void handleButtonRetake()
photoCaptured = false;
retakeButton.setVisibility(View.GONE);
flashButton.animate().alpha(1.0f).setDuration(500L);
- captureButton.setImageResource(R.drawable.ic_camera_alt_white_48dp);
+ captureButton.setImageResource(R.drawable.ic_camera_alt_white_48sp);
camera.startPreview();
}
}
@@ -216,9 +216,9 @@ private void setupFlashIcons()
{
currentFlashIconIndex = 0;
flashIcons = new ArrayList<>();
- flashIcons.add(R.drawable.ic_flash_auto_white_48dp);
- flashIcons.add(R.drawable.ic_flash_on_white_48dp);
- flashIcons.add(R.drawable.ic_flash_off_white_48dp);
+ flashIcons.add(R.drawable.ic_flash_auto_white_48sp);
+ flashIcons.add(R.drawable.ic_flash_on_white_48sp);
+ flashIcons.add(R.drawable.ic_flash_off_white_48sp);
}
private Camera.PictureCallback mPicture = new Camera.PictureCallback()
diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/ProductDialogFragment.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/ProductDialogFragment.java
index 97800bbd..26d60556 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/ProductDialogFragment.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/ProductDialogFragment.java
@@ -222,11 +222,11 @@ public void onClick(View view)
{
if ( dialogCache.getExpandableLayout().getVisibility() == View.GONE )
{
- changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_up_white_48dp, View.VISIBLE);
+ changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_up_white_48sp, View.VISIBLE);
}
else
{
- changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_down_white_48dp, View.GONE);
+ changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_down_white_48sp, View.GONE);
}
}
});
@@ -429,9 +429,9 @@ private void startPhotoPreviewActivity()
this.startActivityForResult(viewPhotoIntent, REQUEST_PHOTO_PREVIEW_FROM_DIALOG);
}
- private void changePhotoThumbnailVisibility(int ic_keyboard_arrow_up_white_48dp, int visible)
+ private void changePhotoThumbnailVisibility(int ic_keyboard_arrow_up_white_48sp, int visible)
{
- dialogCache.getExpandableImageView().setImageResource(ic_keyboard_arrow_up_white_48dp);
+ dialogCache.getExpandableImageView().setImageResource(ic_keyboard_arrow_up_white_48sp);
dialogCache.getExpandableLayout().setVisibility(visible);
}
@@ -466,7 +466,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data)
dialogCache.getProductImage().setImageBitmap(imageBitmap);
dto.setThumbnailBitmap(imageBitmap);
dto.setDefaultImage(false);
- changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_up_white_48dp, View.VISIBLE);
+ changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_up_white_48sp, View.VISIBLE);
}
else if ( requestCode == REQUEST_PHOTO_PREVIEW_FROM_DIALOG && resultCode == RESULT_OK )
{
@@ -475,7 +475,7 @@ else if ( requestCode == REQUEST_PHOTO_PREVIEW_FROM_DIALOG && resultCode == RESU
dialogCache.getProductImage().setImageBitmap(imageBitmap);
dialogCache.setImageScheduledForDeletion(true);
- changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_up_white_48dp, View.VISIBLE);
+ changePhotoThumbnailVisibility(R.drawable.ic_keyboard_arrow_up_white_48sp, View.VISIBLE);
}
}
diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/listeners/onFocusListener/ProductDialogFocusListener.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/listeners/onFocusListener/ProductDialogFocusListener.java
index 57671691..d6c798f3 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/listeners/onFocusListener/ProductDialogFocusListener.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/dialog/listeners/onFocusListener/ProductDialogFocusListener.java
@@ -23,7 +23,7 @@ public void onFocusChange(View view, boolean hasFocus)
if ( hasFocus )
{
dialogCache.getExpandableLayout().setVisibility(View.GONE);
- dialogCache.getExpandableImageView().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48dp);
+ dialogCache.getExpandableImageView().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48sp);
}
}
}
diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/listadapter/ProductsItemViewHolder.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/listadapter/ProductsItemViewHolder.java
index d0703302..ee6f9355 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/listadapter/ProductsItemViewHolder.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/products/listadapter/ProductsItemViewHolder.java
@@ -134,13 +134,13 @@ public boolean onLongClick(View view)
productItemCache.setDetailsVisible(!productItemCache.isDetailsVisible());
if ( productItemCache.isDetailsVisible() )
{
- showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_up_white_48dp);
+ showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_up_white_48sp);
productItemCache.getDetailsLayout().setVisibility(View.VISIBLE);
}
else
{
- showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_down_white_48dp);
+ showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_down_white_48sp);
productItemCache.getDetailsLayout().setVisibility(View.GONE);
}
});
diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/ListDialogFragment.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/ListDialogFragment.java
index da3a989f..a2e9c3b1 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/ListDialogFragment.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/ListDialogFragment.java
@@ -144,7 +144,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b)
if ( !StringUtils.isEmpty(dto.getDeadlineDate()) )
{
dialogCache.getDeadlineExpansionButton().setVisibility(View.VISIBLE);
- dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48dp);
+ dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48sp);
dialogCache.getCheckBox().setChecked(true);
String language;
@@ -171,12 +171,12 @@ public void onClick(View view)
if ( dialogCache.getDeadlineLayout().getVisibility() == View.VISIBLE )
{
dialogCache.getDeadlineLayout().setVisibility(View.GONE);
- dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48dp);
+ dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48sp);
}
else
{
dialogCache.getDeadlineLayout().setVisibility(View.VISIBLE);
- dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_up_white_48dp);
+ dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_up_white_48sp);
}
}
});
@@ -197,7 +197,7 @@ public void onClick(View view)
if ( dialogCache.getCheckBox().isChecked() )
{
dialogCache.getDeadlineExpansionButton().setVisibility(View.VISIBLE);
- dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_up_white_48dp);
+ dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_up_white_48sp);
dialogCache.getDeadlineLayout().setVisibility(View.VISIBLE);
dialogCache.getDateTextView().setText(DateUtils.getDateAsString(currentDate.getTimeInMillis(), datePattern, language));
dialogCache.getTimeTextView().setText(DateUtils.getDateAsString(currentDate.getTimeInMillis(), timePattern, language));
@@ -205,7 +205,7 @@ public void onClick(View view)
else
{
dialogCache.getReminderSwitch().setChecked(false);
- dialogCache.getDeadlineExpansionButton().setVisibility(View.GONE);
+ dialogCache.getDeadlineExpansionButton().setVisibility(View.INVISIBLE);
dialogCache.getDateTextView().setText("");
dialogCache.getTimeTextView().setText("");
dialogCache.getDeadlineLayout().setVisibility(View.GONE);
diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listadapter/ListsItemViewHolder.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listadapter/ListsItemViewHolder.java
index 20031056..63415304 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listadapter/ListsItemViewHolder.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listadapter/ListsItemViewHolder.java
@@ -101,13 +101,13 @@ void processDto(ListDto dto)
listItemCache.setDetailsVisible(!listItemCache.isDetailsVisible());
if ( listItemCache.isDetailsVisible() )
{
- showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_up_white_48dp);
+ showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_up_white_48sp);
listItemCache.getListDetails().setVisibility(View.VISIBLE);
}
else
{
- showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_down_white_48dp);
+ showDetailsButton.setImageResource(R.drawable.ic_keyboard_arrow_down_white_48sp);
listItemCache.getListDetails().setVisibility(View.GONE);
}
});
diff --git a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listeners/ListsDialogFocusListener.java b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listeners/ListsDialogFocusListener.java
index 035a92ba..bf330079 100644
--- a/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listeners/ListsDialogFocusListener.java
+++ b/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/shoppinglist/listeners/ListsDialogFocusListener.java
@@ -24,7 +24,7 @@ public void onFocusChange(View v, boolean hasFocus)
if ( hasFocus )
{
dialogCache.getDeadlineLayout().setVisibility(View.GONE);
- dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48dp);
+ dialogCache.getDeadlineExpansionButton().setImageResource(R.drawable.ic_keyboard_arrow_down_white_48sp);
}
}
}
diff --git a/app/src/main/res/drawable-hdpi/ic_info_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_info_black_24sp.png
similarity index 100%
rename from app/src/main/res/drawable-hdpi/ic_info_black_24dp.png
rename to app/src/main/res/drawable-hdpi/ic_info_black_24sp.png
diff --git a/app/src/main/res/drawable-mdpi/ic_info_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_info_black_24sp.png
similarity index 100%
rename from app/src/main/res/drawable-mdpi/ic_info_black_24dp.png
rename to app/src/main/res/drawable-mdpi/ic_info_black_24sp.png
diff --git a/app/src/main/res/drawable-xhdpi/ic_info_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_info_black_24sp.png
similarity index 100%
rename from app/src/main/res/drawable-xhdpi/ic_info_black_24dp.png
rename to app/src/main/res/drawable-xhdpi/ic_info_black_24sp.png
diff --git a/app/src/main/res/drawable-xxhdpi/ic_info_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_info_black_24sp.png
similarity index 100%
rename from app/src/main/res/drawable-xxhdpi/ic_info_black_24dp.png
rename to app/src/main/res/drawable-xxhdpi/ic_info_black_24sp.png
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_info_black_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_info_black_24sp.png
similarity index 100%
rename from app/src/main/res/drawable-xxxhdpi/ic_info_black_24dp.png
rename to app/src/main/res/drawable-xxxhdpi/ic_info_black_24sp.png
diff --git a/app/src/main/res/drawable/button_disabled.xml b/app/src/main/res/drawable/button_disabled.xml
index 241836d7..8690e068 100644
--- a/app/src/main/res/drawable/button_disabled.xml
+++ b/app/src/main/res/drawable/button_disabled.xml
@@ -3,7 +3,7 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/button_fullwidth.xml b/app/src/main/res/drawable/button_fullwidth.xml
index 6b513240..25d44064 100644
--- a/app/src/main/res/drawable/button_fullwidth.xml
+++ b/app/src/main/res/drawable/button_fullwidth.xml
@@ -3,7 +3,7 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/button_highlighted.xml b/app/src/main/res/drawable/button_highlighted.xml
index d11deb71..e038375c 100644
--- a/app/src/main/res/drawable/button_highlighted.xml
+++ b/app/src/main/res/drawable/button_highlighted.xml
@@ -3,7 +3,7 @@
-
-
+
-
+
diff --git a/app/src/main/res/drawable/button_highlighted_3.xml b/app/src/main/res/drawable/button_highlighted_3.xml
index 3627b949..d64eea04 100644
--- a/app/src/main/res/drawable/button_highlighted_3.xml
+++ b/app/src/main/res/drawable/button_highlighted_3.xml
@@ -3,7 +3,7 @@
-
-
+
diff --git a/app/src/main/res/drawable/button_highlighted_4.xml b/app/src/main/res/drawable/button_highlighted_4.xml
index 99a5cf33..d7ebbf87 100644
--- a/app/src/main/res/drawable/button_highlighted_4.xml
+++ b/app/src/main/res/drawable/button_highlighted_4.xml
@@ -3,7 +3,7 @@
-
-
+
diff --git a/app/src/main/res/drawable/button_middleblue.xml b/app/src/main/res/drawable/button_middleblue.xml
index f5d4ab58..c7539277 100644
--- a/app/src/main/res/drawable/button_middleblue.xml
+++ b/app/src/main/res/drawable/button_middleblue.xml
@@ -3,7 +3,7 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/button_normal.xml b/app/src/main/res/drawable/button_normal.xml
index dad6e874..c49a2b41 100644
--- a/app/src/main/res/drawable/button_normal.xml
+++ b/app/src/main/res/drawable/button_normal.xml
@@ -3,7 +3,7 @@
-
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/fab_tutorial.xml b/app/src/main/res/drawable/fab_tutorial.xml
index b0ec6165..cb6a833c 100644
--- a/app/src/main/res/drawable/fab_tutorial.xml
+++ b/app/src/main/res/drawable/fab_tutorial.xml
@@ -14,9 +14,9 @@
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_camera_alt_white_48dp.png b/app/src/main/res/drawable/ic_camera_alt_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_camera_alt_white_48dp.png
rename to app/src/main/res/drawable/ic_camera_alt_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_cancel_white_48dp.png b/app/src/main/res/drawable/ic_cancel_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_cancel_white_48dp.png
rename to app/src/main/res/drawable/ic_cancel_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_check_white_48dp.png b/app/src/main/res/drawable/ic_check_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_check_white_48dp.png
rename to app/src/main/res/drawable/ic_check_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_delete_white_24dp.png b/app/src/main/res/drawable/ic_delete_white_24sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_delete_white_24dp.png
rename to app/src/main/res/drawable/ic_delete_white_24sp.png
diff --git a/app/src/main/res/drawable/ic_edit_custom_color.xml b/app/src/main/res/drawable/ic_edit_custom_color.xml
index aa6068e8..ab0131ef 100644
--- a/app/src/main/res/drawable/ic_edit_custom_color.xml
+++ b/app/src/main/res/drawable/ic_edit_custom_color.xml
@@ -1,5 +1,5 @@
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_edit_white_48dp.png b/app/src/main/res/drawable/ic_edit_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_edit_white_48dp.png
rename to app/src/main/res/drawable/ic_edit_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_error_black_24dp.png b/app/src/main/res/drawable/ic_error_black_24sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_error_black_24dp.png
rename to app/src/main/res/drawable/ic_error_black_24sp.png
diff --git a/app/src/main/res/drawable/ic_error_outline_white_24dp.png b/app/src/main/res/drawable/ic_error_outline_white_24sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_error_outline_white_24dp.png
rename to app/src/main/res/drawable/ic_error_outline_white_24sp.png
diff --git a/app/src/main/res/drawable/ic_flash_auto_white_48dp.png b/app/src/main/res/drawable/ic_flash_auto_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_flash_auto_white_48dp.png
rename to app/src/main/res/drawable/ic_flash_auto_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_flash_off_white_48dp.png b/app/src/main/res/drawable/ic_flash_off_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_flash_off_white_48dp.png
rename to app/src/main/res/drawable/ic_flash_off_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_flash_on_white_48dp.png b/app/src/main/res/drawable/ic_flash_on_white_48sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_flash_on_white_48dp.png
rename to app/src/main/res/drawable/ic_flash_on_white_48sp.png
diff --git a/app/src/main/res/drawable/ic_home_white_24dp.png b/app/src/main/res/drawable/ic_home_white_24sp.png
similarity index 100%
rename from app/src/main/res/drawable/ic_home_white_24dp.png
rename to app/src/main/res/drawable/ic_home_white_24sp.png
diff --git a/app/src/main/res/drawable/ic_info_black_24dp.xml b/app/src/main/res/drawable/ic_info_black_24dp.xml
index f932682a..9ac30dc1 100644
--- a/app/src/main/res/drawable/ic_info_black_24dp.xml
+++ b/app/src/main/res/drawable/ic_info_black_24dp.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/search_border_style.xml b/app/src/main/res/drawable/search_border_style.xml
index 4c8105a1..3cb398a0 100644
--- a/app/src/main/res/drawable/search_border_style.xml
+++ b/app/src/main/res/drawable/search_border_style.xml
@@ -12,7 +12,7 @@
diff --git a/app/src/main/res/layouts/about/layout/activity_about.xml b/app/src/main/res/layouts/about/layout/activity_about.xml
index 06276f0e..cac123ac 100644
--- a/app/src/main/res/layouts/about/layout/activity_about.xml
+++ b/app/src/main/res/layouts/about/layout/activity_about.xml
@@ -42,7 +42,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
- android:layout_marginTop="20dp"
+ android:layout_marginTop="20sp"
android:text="@string/app_name_long"/>
@@ -83,7 +83,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
- android:layout_marginTop="15dp"
+ android:layout_marginTop="15sp"
android:text="@string/about_affiliation"
android:textStyle="bold"/>
@@ -97,7 +97,7 @@
@@ -107,7 +107,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
- android:layout_marginTop="15dp"
+ android:layout_marginTop="15sp"
android:text="@string/more_info"/>
diff --git a/app/src/main/res/layouts/deleteproducts/layout/delete_product_list_item.xml b/app/src/main/res/layouts/deleteproducts/layout/delete_product_list_item.xml
index 8a96c3c7..601aeb44 100644
--- a/app/src/main/res/layouts/deleteproducts/layout/delete_product_list_item.xml
+++ b/app/src/main/res/layouts/deleteproducts/layout/delete_product_list_item.xml
@@ -5,8 +5,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:layout_margin="8dp"
- card_view:cardCornerRadius="4dp">
+ android:layout_margin="8sp"
+ card_view:cardCornerRadius="4sp">
@@ -37,7 +37,7 @@
android:id="@+id/textview_prod_quantity"
android:text="@string/ph_list_nr_items"
android:layout_width="wrap_content"
- android:layout_height="?attr/listPreferredItemHeight"
+ android:layout_height="@dimen/listPreferredItemHeight"
android:layout_toLeftOf="@id/checkbox_is_selected"
android:gravity="center_vertical"
android:layout_marginRight="@dimen/list_margin"
@@ -49,9 +49,9 @@
android:layout_width="match_parent"
android:background="@color/transparent"
android:backgroundTint="@color/transparent"
- android:layout_height="?attr/listPreferredItemHeight"
+ android:layout_height="@dimen/listPreferredItemHeight"
android:layout_gravity="center"
- card_view:cardCornerRadius="4dp"
+ card_view:cardCornerRadius="4sp"
/>
diff --git a/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml b/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml
index 0b8c29c6..36984c08 100644
--- a/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml
+++ b/app/src/main/res/layouts/deleteproducts/layout/delete_products_activity.xml
@@ -25,7 +25,7 @@
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:tint="@color/white"
- android:src="@drawable/ic_delete_white_24dp"
+ android:src="@drawable/ic_delete_white_24sp"
app:layout_anchor="@id/recyclerView"
app:layout_anchorGravity="bottom|right|end"
app:layout_behavior=".ui.fab.ScrollAwareFabBehaviorForDeleteActivities"/>
diff --git a/app/src/main/res/layouts/main/layout/app_bar_main.xml b/app/src/main/res/layouts/main/layout/app_bar_main.xml
index 226e4071..2cb91551 100644
--- a/app/src/main/res/layouts/main/layout/app_bar_main.xml
+++ b/app/src/main/res/layouts/main/layout/app_bar_main.xml
@@ -31,12 +31,12 @@
android:id="@+id/insert_alert"
android:orientation="horizontal"
android:layout_margin="@dimen/fab_margin"
- android:paddingRight="70dp"
+ android:paddingRight="70sp"
android:gravity="center_vertical"
app:layout_anchor="@id/fab_new_list"
app:layout_anchorGravity="bottom|left"
android:layout_width="wrap_content"
- android:layout_height="50dp">
+ android:layout_height="50sp">
diff --git a/app/src/main/res/layouts/products/layout/product_dialog.xml b/app/src/main/res/layouts/products/layout/product_dialog.xml
index 2f8ef8f9..97d0c9b5 100644
--- a/app/src/main/res/layouts/products/layout/product_dialog.xml
+++ b/app/src/main/res/layouts/products/layout/product_dialog.xml
@@ -76,16 +76,16 @@
@@ -228,13 +228,13 @@
android:orientation="vertical">
diff --git a/app/src/main/res/layouts/products/layout/product_list_item.xml b/app/src/main/res/layouts/products/layout/product_list_item.xml
index 89b45770..b57dde6c 100644
--- a/app/src/main/res/layouts/products/layout/product_list_item.xml
+++ b/app/src/main/res/layouts/products/layout/product_list_item.xml
@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:layout_margin="8dp"
+ android:layout_margin="8sp"
card_view:cardCornerRadius="@dimen/card_corner_radius">
+ android:layout_height="@dimen/listPreferredItemHeight">
+ android:src="@drawable/ic_keyboard_arrow_down_white_48sp"/>
+ android:layout_height="@dimen/listPreferredItemHeight">
@@ -76,7 +76,7 @@
android:id="@+id/textview_prod_quantity"
android:text="@string/ph_list_nr_items"
android:layout_width="wrap_content"
- android:layout_height="?attr/listPreferredItemHeight"
+ android:layout_height="@dimen/listPreferredItemHeight"
android:gravity="center_vertical"
android:layout_marginRight="@dimen/list_margin"
android:textSize="@dimen/text_small"
diff --git a/app/src/main/res/layouts/products/layout/products_activity.xml b/app/src/main/res/layouts/products/layout/products_activity.xml
index 31e8ba6a..1756b622 100644
--- a/app/src/main/res/layouts/products/layout/products_activity.xml
+++ b/app/src/main/res/layouts/products/layout/products_activity.xml
@@ -14,16 +14,16 @@
android:id="@+id/search_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_margin="8sp"
android:layout_toStartOf="@+id/cancel_search"
android:layout_alignParentEnd="true">
@@ -77,12 +77,12 @@
android:id="@+id/insert_alert"
android:orientation="horizontal"
android:layout_margin="@dimen/fab_margin"
- android:paddingRight="70dp"
+ android:paddingRight="70sp"
android:gravity="center_vertical"
app:layout_anchor="@id/fab_new_product"
app:layout_anchorGravity="bottom|left"
android:layout_width="wrap_content"
- android:layout_height="50dp">
+ android:layout_height="50sp">
diff --git a/app/src/main/res/layouts/products/layout/products_total_amount.xml b/app/src/main/res/layouts/products/layout/products_total_amount.xml
index 92255f65..f38b85ad 100644
--- a/app/src/main/res/layouts/products/layout/products_total_amount.xml
+++ b/app/src/main/res/layouts/products/layout/products_total_amount.xml
@@ -7,7 +7,7 @@
android:orientation="horizontal"
android:background="@color/colorPrimaryDark"
android:layout_width="match_parent"
- android:layout_height="?attr/listPreferredItemHeight"
+ android:layout_height="@dimen/listPreferredItemHeight"
android:layout_weight="10"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true">
diff --git a/app/src/main/res/layouts/shoppinglist/layout/shopping_list_dialog.xml b/app/src/main/res/layouts/shoppinglist/layout/shopping_list_dialog.xml
index 0b41b6b8..2f4aa7ff 100644
--- a/app/src/main/res/layouts/shoppinglist/layout/shopping_list_dialog.xml
+++ b/app/src/main/res/layouts/shoppinglist/layout/shopping_list_dialog.xml
@@ -13,7 +13,7 @@
android:textColor="@color/white"
android:layout_width="match_parent"
android:layout_height="@dimen/dialog_title_height"
- android:layout_marginBottom="10dp"
+ android:layout_marginBottom="10sp"
android:textStyle="bold"/>
+ android:layout_height="wrap_content">
+ android:src="@drawable/ic_keyboard_arrow_down_white_48sp"
+ android:visibility="invisible"/>
@@ -191,8 +191,8 @@
@@ -215,7 +215,7 @@
+ android:layout_marginLeft="5sp"/>
+ android:layout_height="@dimen/listPreferredItemHeight">
+ android:src="@drawable/ic_keyboard_arrow_down_white_48sp"/>
diff --git a/app/src/main/res/layouts/shoppinglist/layout/shopping_list_item_left_hand.xml b/app/src/main/res/layouts/shoppinglist/layout/shopping_list_item_left_hand.xml
index ac0da475..6a85f70d 100644
--- a/app/src/main/res/layouts/shoppinglist/layout/shopping_list_item_left_hand.xml
+++ b/app/src/main/res/layouts/shoppinglist/layout/shopping_list_item_left_hand.xml
@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:layout_margin="8dp"
+ android:layout_margin="8sp"
card_view:cardCornerRadius="@dimen/card_corner_radius">
+ android:layout_height="@dimen/listPreferredItemHeight">
diff --git a/app/src/main/res/layouts/statistics/layout/statistics_diagramm.xml b/app/src/main/res/layouts/statistics/layout/statistics_diagramm.xml
index a5006df4..737effd8 100644
--- a/app/src/main/res/layouts/statistics/layout/statistics_diagramm.xml
+++ b/app/src/main/res/layouts/statistics/layout/statistics_diagramm.xml
@@ -10,7 +10,7 @@
@@ -11,7 +11,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
- android:layout_marginTop="7dp"
+ android:layout_marginTop="7sp"
android:paddingRight="@dimen/statistics_padding"
android:paddingLeft="@dimen/statistics_padding"
android:text="@string/ph_total_amount"
diff --git a/app/src/main/res/layouts/tutorials/layout/delete_tutorial.xml b/app/src/main/res/layouts/tutorials/layout/delete_tutorial.xml
index 72462c54..fd0a2a3e 100644
--- a/app/src/main/res/layouts/tutorials/layout/delete_tutorial.xml
+++ b/app/src/main/res/layouts/tutorials/layout/delete_tutorial.xml
@@ -15,7 +15,7 @@
android:textColor="@color/white"
android:layout_width="match_parent"
android:layout_height="@dimen/dialog_title_height"
- android:layout_marginBottom="10dp"
+ android:layout_marginBottom="10sp"
android:textStyle="bold"/>
+ android:src="@drawable/ic_delete_white_24sp"/>
diff --git a/app/src/main/res/layouts/tutorials/layout/products_tutorial.xml b/app/src/main/res/layouts/tutorials/layout/products_tutorial.xml
index 4bc357b2..3e9e1071 100644
--- a/app/src/main/res/layouts/tutorials/layout/products_tutorial.xml
+++ b/app/src/main/res/layouts/tutorials/layout/products_tutorial.xml
@@ -11,7 +11,7 @@
android:textColor="@color/white"
android:layout_width="match_parent"
android:layout_height="@dimen/dialog_title_height"
- android:layout_marginBottom="10dp"
+ android:layout_marginBottom="10sp"
android:textStyle="bold"/>
diff --git a/app/src/main/res/menu/lists_menu.xml b/app/src/main/res/menu/lists_menu.xml
index 9e98d97e..38434fa5 100644
--- a/app/src/main/res/menu/lists_menu.xml
+++ b/app/src/main/res/menu/lists_menu.xml
@@ -5,13 +5,13 @@
\ No newline at end of file
diff --git a/app/src/main/res/menu/photopreview_menu.xml b/app/src/main/res/menu/photopreview_menu.xml
index 0416f03c..12b92a60 100644
--- a/app/src/main/res/menu/photopreview_menu.xml
+++ b/app/src/main/res/menu/photopreview_menu.xml
@@ -5,7 +5,7 @@
\ No newline at end of file
diff --git a/app/src/main/res/menu/products_menu.xml b/app/src/main/res/menu/products_menu.xml
index a0372dc8..e9b674a0 100644
--- a/app/src/main/res/menu/products_menu.xml
+++ b/app/src/main/res/menu/products_menu.xml
@@ -5,19 +5,19 @@
\ No newline at end of file
diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml
index 63fc8164..76fc4d93 100644
--- a/app/src/main/res/values-w820dp/dimens.xml
+++ b/app/src/main/res/values-w820dp/dimens.xml
@@ -2,5 +2,5 @@
- 64dp
+ 64sp
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index 62100948..7116d72e 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -1,53 +1,54 @@
- 240dp
+ 240sp
- 16dp
- 12dp
- 4dp
- -25dp
- -10dp
- -5dp
+ 16sp
+ 12sp
+ 4sp
+ -25sp
+ -10sp
+ -5sp
+ 64sp
- 12dp
- 4dp
+ 12sp
+ 4sp
- 16dp
- 32dp
- 8dp
- 16dp
- 20dp
- 50dp
- 50dp
- 4dp
- 0dp
- 4dp
+ 16sp
+ 32sp
+ 8sp
+ 16sp
+ 20sp
+ 50sp
+ 50sp
+ 4sp
+ 0sp
+ 4sp
- 10dp
- 40dp
+ 10sp
+ 40sp
- 20dp
+ 20sp
- 16dp
+ 16sp
- 12dp
- 4dp
- 8dp
- 32dp
- 8dp
+ 12sp
+ 4sp
+ 8sp
+ 32sp
+ 8sp
- 16dp
- 160dp
+ 16sp
+ 160sp
- 16dp
- 16dp
- 16dp
+ 16sp
+ 16sp
+ 16sp
\ No newline at end of file
diff --git a/app/src/main/res/xml/pref_headers.xml b/app/src/main/res/xml/pref_headers.xml
index b568962b..3416f3ac 100644
--- a/app/src/main/res/xml/pref_headers.xml
+++ b/app/src/main/res/xml/pref_headers.xml
@@ -4,7 +4,7 @@