Use AppCompat

This commit is contained in:
Andrew Rabert 2017-03-05 11:23:13 -05:00
parent 90dc14c7bc
commit 5d1889fd1d
2 changed files with 4 additions and 9 deletions

View File

@ -1,12 +1,12 @@
package net.nullsum.audinaut.view;
import android.content.Context;
import android.support.v7.widget.AppCompatImageButton;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageButton;
public class AutoRepeatButton extends ImageButton {
public class AutoRepeatButton extends AppCompatImageButton {
private static final long initialRepeatDelay = 1000;
private static final long repeatIntervalInMilliseconds = 300;

View File

@ -23,10 +23,10 @@ import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.TransitionDrawable;
import android.os.Build;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.widget.ImageView;
public class RecyclingImageView extends ImageView {
public class RecyclingImageView extends AppCompatImageView {
private boolean invalidated = false;
private OnInvalidated onInvalidated;
@ -42,11 +42,6 @@ public class RecyclingImageView extends ImageView {
super(context, attrs, defStyleAttr);
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public RecyclingImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
@Override
public void onDraw(Canvas canvas) {
Drawable drawable = this.getDrawable();