package com.marshalchen.common.demoofui.pulltozoomview; import android.content.Intent; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.View; import com.marshalchen.common.demoofui.R; public class PullToZoomActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pull_to_zoom_activity_main); findViewById(R.id.btn_list).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(PullToZoomActivity.this, PullToZoomListActivity.class)); } }); findViewById(R.id.btn_scroll).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(PullToZoomActivity.this, PullToZoomScrollActivity.class)); } }); } }