mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
parent
d9fa31242f
commit
480c05b2f3
18 changed files with 35 additions and 43 deletions
|
|
@ -6,10 +6,11 @@ import android.support.annotation.NonNull;
|
|||
import android.support.annotation.Nullable;
|
||||
import android.support.v7.widget.CardView;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
|
||||
import timber.log.Timber;
|
||||
|
||||
/**
|
||||
* A card view which informs onSwipe events to its child
|
||||
*/
|
||||
|
|
@ -37,7 +38,7 @@ public abstract class SwipableCardView extends CardView {
|
|||
this.setOnTouchListener((v, event) -> {
|
||||
boolean isSwipe = false;
|
||||
float deltaX = 0.0f;
|
||||
Log.e("#SwipableCardView#", event.getAction() + "");
|
||||
Timber.e(event.getAction() + "");
|
||||
switch (event.getAction()) {
|
||||
case MotionEvent.ACTION_DOWN:
|
||||
x1 = event.getX();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue