Android Open Source - PullZoomView Main Activity






From Project

Back to project page PullZoomView.

License

The source code is released under:

Apache License

If you think the Android project PullZoomView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ecloud.pulltozoomview.demo;
/* ww  w.  ja v  a 2  s . c o  m*/
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;


public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_list).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, PullToZoomListActivity.class));
            }
        });

        findViewById(R.id.btn_scroll).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, PullToZoomScrollActivity.class));
            }
        });
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}




Java Source Code List

com.ecloud.pulltozoomview.ApplicationTest.java
com.ecloud.pulltozoomview.ApplicationTest.java
com.ecloud.pulltozoomview.IPullToZoom.java
com.ecloud.pulltozoomview.PullToZoomBase.java
com.ecloud.pulltozoomview.PullToZoomListViewEx.java
com.ecloud.pulltozoomview.PullToZoomListView.java
com.ecloud.pulltozoomview.PullToZoomScrollViewEx.java
com.ecloud.pulltozoomview.PullToZoomScrollView.java
com.ecloud.pulltozoomview.demo.MainActivity.java
com.ecloud.pulltozoomview.demo.PullToZoomListActivity.java
com.ecloud.pulltozoomview.demo.PullToZoomScrollActivity.java