diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/utils/SnackbarHelper.java b/app/src/main/java/pl/szczodrzynski/edziennik/utils/SnackbarHelper.java deleted file mode 100644 index 3fe2648b..00000000 --- a/app/src/main/java/pl/szczodrzynski/edziennik/utils/SnackbarHelper.java +++ /dev/null @@ -1,28 +0,0 @@ -package pl.szczodrzynski.edziennik.utils; - -import android.content.Context; -import android.view.ViewGroup; - -import com.google.android.material.snackbar.Snackbar; - -import androidx.core.view.ViewCompat; -import pl.szczodrzynski.edziennik.R; - -public class SnackbarHelper { - - public static void configSnackbar(Context context, Snackbar snack) { - addMargins(snack); - setRoundBordersBg(context, snack); - ViewCompat.setElevation(snack.getView(), 6f); - } - - private static void addMargins(Snackbar snack) { - ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) snack.getView().getLayoutParams(); - params.setMargins(12, 12, 12, 12); - snack.getView().setLayoutParams(params); - } - - private static void setRoundBordersBg(Context context, Snackbar snackbar) { - snackbar.getView().setBackground(context.getResources().getDrawable(R.drawable.bg_snackbar)); - } -} diff --git a/app/src/main/res/drawable/bg_rounded_ripple_4dp_pressed.xml b/app/src/main/res/drawable/bg_rounded_ripple_4dp_pressed.xml deleted file mode 100644 index aadf2255..00000000 --- a/app/src/main/res/drawable/bg_rounded_ripple_4dp_pressed.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/bg_snackbar.xml b/app/src/main/res/drawable/bg_snackbar.xml deleted file mode 100644 index 91835112..00000000 --- a/app/src/main/res/drawable/bg_snackbar.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file