Code example for View

Methods: findViewById

0
		if (activity instanceof PullToRefreshAttacherActivity) {
			mPullToRefreshAttacher = ((PullToRefreshAttacherActivity) activity).getPullToRefreshAttacher();
			// Set the Refreshable View to be the ListView and the refresh 
			// listener 
			// to be this. 
			mPullToRefreshAttacher.addRefreshableView(view.findViewById(android.R.id.list), this);
		} else 
			throw new IllegalStateException("Activity class must implement PullToRefreshAttacherActivity");
		return view;
	} 
 
	@Override 
	public boolean onDown(final MotionEvent e) {
		return true; 
	} 
 
	@Override 
	public boolean onFling(final MotionEvent e1, final MotionEvent e2, final float velocityX, final float velocityY) {
		return true; 
	} 
Experience pair programming with AI  Get Codota for Java