Back to project page PullToZoomInListView.
The source code is released under:
Apache License
If you think the Android project PullToZoomInListView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.matrixxun.pulltozoomlistsimple; //www . java 2s . c o m import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.ListView; public class MainActivity extends Activity { PullToZoomListView listView; private String[] adapterData; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); listView = (PullToZoomListView)findViewById(R.id.listview); adapterData = new String[] { "Activity","Service","Content Provider","Intent","BroadcastReceiver","ADT","Sqlite3","HttpClient","DDMS","Android Studio","Fragment","Loader" }; listView.setAdapter(new ArrayAdapter<String>(MainActivity.this, android.R.layout.simple_list_item_1, adapterData)); listView.getHeaderView().setImageResource(R.drawable.splash01); listView.getHeaderView().setScaleType(ImageView.ScaleType.CENTER_CROP); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }