Android Open Source - ImageSearcher2 Image View Activity






From Project

Back to project page ImageSearcher2.

License

The source code is released under:

Apache License

If you think the Android project ImageSearcher2 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.example.imagesearcher;
//from www.  j  av  a2 s  . c om
import com.loopj.android.image.SmartImageView;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class ImageViewActivity extends Activity
{
  private SmartImageView imgFullImage;
  
  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_image_view);
    
    imgFullImage = (SmartImageView)findViewById(R.id.imgFullImage);
    
    final Intent i = getIntent();
    final ImageResult theImageInfo = (ImageResult)i.getSerializableExtra(ImageGridActivity.IMAGE_RESULTS_KEY);
    final int theIndex = i.getIntExtra(ImageGridActivity.IMAGE_POSITION_KEY, 0);
    
    imgFullImage.setImageUrl(theImageInfo.getFullUrl());
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu)
  {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.image_view, menu);
    return true;
  }

}




Java Source Code List

com.example.imagesearcher.ActivityRequestCodes.java
com.example.imagesearcher.EndlessScrollListener.java
com.example.imagesearcher.ImageGridActivity.java
com.example.imagesearcher.ImageResultArrayAdapter.java
com.example.imagesearcher.ImageResult.java
com.example.imagesearcher.ImageViewActivity.java
com.example.imagesearcher.SearchSettingsActivity.java
com.example.imagesearcher.SearchSettings.java