add helping behavior;

optimize import
This commit is contained in:
jacques 2020-07-18 20:20:15 +02:00
parent 053eb53459
commit b9b2462112

View file

@ -3,6 +3,8 @@ package net.foucry.pilldroid;
import android.content.Context; import android.content.Context;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import android.view.View; import android.view.View;
@ -17,7 +19,7 @@ public class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration {
} }
@Override @Override
public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { public void onDrawOver(@NonNull Canvas c, RecyclerView parent, @NonNull RecyclerView.State state) {
int left = parent.getPaddingLeft(); int left = parent.getPaddingLeft();
int right = parent.getWidth() - parent.getPaddingRight(); int right = parent.getWidth() - parent.getPaddingRight();