Android Open Source - ImageSearch Image Display Activity






From Project

Back to project page ImageSearch.

License

The source code is released under:

MIT License

If you think the Android project ImageSearch 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 net.crimsonresearch.imagesearch;
//  w w  w.jav a  2  s.c o  m
import com.loopj.android.image.SmartImageView;

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

public class ImageDisplayActivity extends Activity {

  public static final String KEY_NAME = "result";

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_image_display);
    ImageResult imageResult = (ImageResult) getIntent().getSerializableExtra(KEY_NAME);
    SmartImageView ivImage = (SmartImageView) findViewById(R.id.ivResult);
    ivImage.setImageUrl(imageResult.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_display, menu);
    return true;
  }

}




Java Source Code List

net.crimsonresearch.imagesearch.EndlessScrollListener.java
net.crimsonresearch.imagesearch.ImageDisplayActivity.java
net.crimsonresearch.imagesearch.ImageResultArrayAdapter.java
net.crimsonresearch.imagesearch.ImageResult.java
net.crimsonresearch.imagesearch.ImageSearch.java
net.crimsonresearch.imagesearch.SearchSettings.java
net.crimsonresearch.imagesearch.Settings.java