mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[Refactor] Remove unused class and resources.
This commit is contained in:
parent
208d097986
commit
ea7b4438e8
@ -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));
|
||||
}
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="4dp" />
|
||||
<stroke android:color="@color/dividerColor" android:width="1dp" />
|
||||
<solid android:color="#DCDCDC" />
|
||||
</shape>
|
@ -1,5 +0,0 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#323232" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
Loading…
Reference in New Issue
Block a user