package com.johnliu.swipefinish.core;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;

public class SwipeFinishActivity extends FragmentActivity {

	SwipeFinishLayout swipeLayout;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		swipeLayout = new SwipeFinishLayout(SwipeFinishActivity.this);
		swipeLayout.init(SwipeFinishActivity.this);
		ViewGroup.LayoutParams params = new LayoutParams(
				LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
		super.setContentView(swipeLayout, params);
	}

	public void setContentView(int resid) {
		View content = LayoutInflater.from(getApplicationContext()).inflate(
				resid, null);
		swipeLayout.addView(content);
	}

	/**
	 * /** Intercept a ViewPager.
	 * <p>
	 * To avoid conflict.
	 * 
	 * @param viewPager
	 */
	public void interceptViewPager(ViewPager viewPager) {
		swipeLayout.interceptViewPager(viewPager);
	}

}

@@ -286,16 +286,140 @@
 arams;%0A%0A
+/**%0A * SwipeFinishActivity.%0A * %3Cp%3E%0A * Base activity for swiping to finish activity.%0A * %0A * Created by John on 2014-6-19%0A */%0A
 public c

Add some comments for SwipeFinshActivity.