Example usage for android.view View.OnTouchListener interface-usage

List of usage examples for android.view View.OnTouchListener interface-usage

Introduction

In this page you can find the example usage for android.view View.OnTouchListener interface-usage.

Usage

From source file com.watabou.noosa.Game.java

public class Game extends Activity
        implements GLSurfaceView.Renderer, View.OnTouchListener, ActivityCompat.OnRequestPermissionsResultCallback {

    private static Game instance;

    // Actual size of the screen

From source file net.osmand.plus.views.controls.SwipeDismissListViewTouchListener.java

/**
 * A {@link View.OnTouchListener} that makes the list items in a {@link ListView}
 * dismissable. {@link ListView} is given special treatment because by default it handles touches
 * for its list items... i.e. it's in charge of drawing the pressed state (the list selector),
 * handling list item clicks, etc.
 * <p/>

From source file geeshang.nasaimage.MainActivity.java

public class MainActivity extends Activity implements View.OnTouchListener, View.OnClickListener,
        View.OnLongClickListener, SwipeRefreshLayout.OnRefreshListener {
    //Use translation service from BaiDu.
    private static final String BAIDU_TRANSLATE_URL = "http://openapi.baidu.com/public/2.0/bmt/translate?client_id=13jrLBe0N9XDdfDmR9n6LBAm&q=";
    private static final String NASA_URL = "http://www.nasa.gov/rss/dyn/image_of_the_day.rss";
    //Use the path below to save image.

From source file SwipeListViewTouchListener.java

/**
 * Touch listener impl for the SwipeListView
 */
public class SwipeListViewTouchListener implements View.OnTouchListener {

    private static final int DISPLACE_CHOICE = 80;

From source file com.daycle.daycleapp.custom.swipelistview.itemmanipulation.swipedismiss.SwipeTouchListener.java

/**
 * An {@link View.OnTouchListener} that makes the list items in a {@link android.widget.AbsListView} swipeable.
 * Implementations of this class should implement {@link #afterViewFling(View, int)} to specify what to do after an item has been swiped.
 */
public abstract class SwipeTouchListener implements View.OnTouchListener, TouchEventHandler {

From source file com.projecttango.examples.java.occlusion.OcclusionActivity.java

/**
 * An example showing how to build an application that implements occlusion of virtual objects.
 * It uses {@code TangoMesher} to do a mesh reconstruction of the scene. The meshes are then
 * rendered to a frame buffer to make a depth texture.
 * The occlusion of the virtual objects is decided per fragment in the fragment shader using
 * depth information.

From source file com.simas.vc.editor.player.PlayerFragment.java

public class PlayerFragment extends Fragment
        implements View.OnTouchListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener,
        View.OnKeyListener, SurfaceHolder.Callback, Player.OnStateChangedListener, Controls.PlayClickOverrider {

    private static final int MAX_INITIALIZATION_RETRIES = 1;
    /* Instance state variables */

From source file com.agitive.usembassy.libraries.SwipeListView.SwipeListViewTouchListener.java

/**
 * Touch listener impl for the SwipeListView
 */
public class SwipeListViewTouchListener implements View.OnTouchListener {

    private static final int DISPLACE_CHOICE = 80;

From source file com.huyn.demogroup.zoomageview.view.PhotoViewAttacher.java

/**
 * The component of {@link PhotoView} which does the work allowing for zooming, scaling, panning, etc.
 * It is made public in case you need to subclass something other than {@link ImageView} and still
 * gain the functionality that {@link PhotoView} offers
 */
public class PhotoViewAttacher implements View.OnTouchListener, OnGestureListener, View.OnLayoutChangeListener {

From source file com.swipinglist.master.SwipeListViewTouchListener.java

/**
 * Touch listener impl for the SwipeListView
 */
public class SwipeListViewTouchListener implements View.OnTouchListener {

    private static final int DISPLACE_CHOICE = 80;