package com.handmark.pulltorefresh.samples;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class LauncherActivity extends ListActivity {

	public static final String[] options = { "ListView", "ExpandableListView", "GridView", "WebView" };

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, options));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		Intent intent;

		switch (position) {
			default:
			case 0:
				intent = new Intent(this, PullToRefreshListActivity.class);
				break;
			case 1:
				intent = new Intent(this, PullToRefreshExpandableListActivity.class);
				break;
			case 2:
				intent = new Intent(this, PullToRefreshGridActivity.class);
				break;
			case 3:
				intent = new Intent(this, PullToRefreshWebViewActivity.class);
				break;
		}

		startActivity(intent);
	}

}

@@ -1,8 +1,762 @@
+/*******************************************************************************%0A * Copyright 2011, 2012 Chris Banes.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *******************************************************************************/%0A
 package 

Fix Copyrights