Code example for View

Methods: setOnTouchListener

0
 
	/** 
	 * Add a view which will be used to initiate refresh requests, along with a 
	 * delegate which knows how to handle the given view, and a listener to be 
	 * invoked when a refresh is started. 
	 *  
	 * @param view 
	 *            View which will be used to initiate refresh requests. 
	 * @param viewDelegate 
	 *            delegate which knows how to handle <code>view</code>. 
	 * @param refreshListener 
	 *            Listener to be invoked when a refresh is started. 
	 * @param setTouchListener 
	 *            Whether to set this as the 
	 *            {@link android.view.View.OnTouchListener}. 
	 */ 
	void addRefreshableView(View view, ViewDelegate viewDelegate,
			OnRefreshListener refreshListener, final boolean setTouchListener) {
		// Check to see if view is null 
		if (view == null) {
			Log.i(LOG_TAG, "Refreshable View is null.");