File tree Expand file tree Collapse file tree
dragfloatactionbuttonlibrary
src/main/java/com/barnettwong/dragfloatactionbuttonlibrary/view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,11 +24,3 @@ android {
2424
2525}
2626
27- dependencies {
28- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
29-
30- implementation ' com.android.support:appcompat-v7:28.0.0'
31- testImplementation ' junit:junit:4.12'
32- androidTestImplementation ' com.android.support.test:runner:1.0.2'
33- androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
34- }
Original file line number Diff line number Diff line change 33import android .animation .ObjectAnimator ;
44import android .content .Context ;
55import android .os .Handler ;
6- import android .support .annotation .Nullable ;
76import android .util .AttributeSet ;
87import android .util .Log ;
98import android .view .MotionEvent ;
109import android .view .ViewGroup ;
1110import android .view .animation .DecelerateInterpolator ;
11+ import android .widget .ImageView ;
1212
13- public class DragFloatActionButton extends android . support . v7 . widget . AppCompatImageView {
13+ public class DragFloatActionButton extends ImageView {
1414
1515 private int parentHeight ;
1616 private int parentWidth ;
@@ -35,15 +35,14 @@ public DragFloatActionButton(Context context) {
3535 super (context );
3636 }
3737
38- public DragFloatActionButton (Context context , @ Nullable AttributeSet attrs ) {
38+ public DragFloatActionButton (Context context , AttributeSet attrs ) {
3939 super (context , attrs );
4040 }
4141
42- public DragFloatActionButton (Context context , @ Nullable AttributeSet attrs , int defStyleAttr ) {
42+ public DragFloatActionButton (Context context , AttributeSet attrs , int defStyleAttr ) {
4343 super (context , attrs , defStyleAttr );
4444 }
4545
46-
4746 @ Override
4847 public boolean onTouchEvent (MotionEvent event ) {
4948 int rawX = (int ) event .getRawX ();
You can’t perform that action at this time.
0 commit comments