app id changed

This commit is contained in:
2020-04-18 22:58:14 +03:00
parent 8aa1cb3bfb
commit 8e4f53ed9a
136 changed files with 705 additions and 705 deletions

View File

@@ -0,0 +1,47 @@
package ch.pizzacucina.android.view;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
/**
* Created by cimenmus on 17/10/2017.
*/
public class NoSwipeViewPager extends ViewPager {
private boolean enabled;
public NoSwipeViewPager(Context context, AttributeSet attrs) {
super(context, attrs);
this.enabled = false;
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if (this.enabled) {
return super.onTouchEvent(event);
}
return false;
}
@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
if (this.enabled) {
return super.onInterceptTouchEvent(event);
}
return false;
}
public void setPagingEnabled(boolean enabled) {
this.enabled = enabled;
}
@Override
public boolean canScrollHorizontally(int direction) {
return false;
}
}