Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
- setContentView(R.layout.image);
- Context context = getApplicationContext();
- ImageView imageView = new ImageView(context);
- imageView = (ImageView) findViewById(R.id.imageView1);
- imageView.setImageResource(R.drawable.pic1); // Need this to change for each picture by changing 'pic1' to 'pic(position+1)'
- }
Add Comment
Please, Sign In to add comment