List of usage examples for android.app ActivityOptions makeScaleUpAnimation
public static ActivityOptions makeScaleUpAnimation(View source, int startX, int startY, int width, int height)
From source file:net.wespot.pim.view.InqImageGridFragment.java
@TargetApi(VERSION_CODES.JELLY_BEAN) @Override//from w ww. j av a 2s .co m public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(getActivity(), ImageDetailActivity.class); i.putExtra(ImageDetailActivity.RESPONSE_POSITION, (int) id); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:com.example.samsisekki.displayingbitmaps.ui.ImageGridFragment.java
@TargetApi(VERSION_CODES.JELLY_BEAN) @Override/* w w w.j av a2 s .c o m*/ public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(getActivity(), FoodList.class); i.putExtra(ImageDetailActivity.EXTRA_IMAGE, (int) id); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:com.greendev.image.ImageGridFragment.java
@TargetApi(16) @Override//from www .j av a 2s . c om public void onItemClick(AdapterView<?> parent, View v, int position, long id) { /* transferring information to ImageDetailActivity */ Bundle b = new Bundle(); b.putStringArray("URLS_TYPE", typeUrls); b.putStringArray("CAPTIONS", captions); final Intent i = new Intent(context, ImageDetailActivity.class); i.putExtras(b); i.putExtra(ImageDetailActivity.EXTRA_IMAGE, (int) id); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the // loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); context.startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:com.mklodoss.SexyGirl.displayingbitmaps.ui.ImageGridFragment.java
@TargetApi(VERSION_CODES.JELLY_BEAN) @Override//from w w w . j ava2 s .c o m public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(getActivity(), ImageDetailActivity.class); i.putExtra(ImageDetailActivity.EXTRA_IMAGE, (int) id); i.putExtra(ImageDetailActivity.EXTRA_CATEGORY, category); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:io.indy.seni.ui.EvolveGridFragment.java
@Override public void onItemClick(AdapterView<?> parent, View v, int position, long id) { Genotype genotype = mEvolveContainer.getGenotype((int) id); AstHolder astHolder = genotype.getAstHolder(); try {// w ww .jav a 2 s . c om String script = astHolder.scribe(genotype); Intent intent = new Intent(getActivity(), RenderActivity.class); intent.putExtra(GENESIS_SCRIPT, script); // startActivity(intent); if (AppConfig.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(intent, options.toBundle()); } else { startActivity(intent); } } catch (Node.ScribeException e) { e.printStackTrace(); } }
From source file:com.abs.telecam.gui.ControllerViewer.java
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) @Override/*www . j ava 2 s . c o m*/ public void onItemClick(AdapterView<?> parent, View v, int position, long id) { String uri = Images.getPhotos()[(int) id]; final Intent i = new Intent(getActivity(), PhotoDetail.class); i.putExtra(PhotoDetail.PHOTO, uri); if (isGallery()) { if (Utils.hasJellyBean()) { ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } } }
From source file:com.wulian.icam.view.album.AlbumGridFragment.java
@TargetApi(VERSION_CODES.JELLY_BEAN) @Override// www . j a v a2 s.c om public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(getActivity(), AlbumPicActivity.class); i.putExtra("AlbumEntity", mAlbumEntity); i.putExtra("position", position); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the // loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:com.example.camera360.ui.ImageGridFragment.java
@TargetApi(16) @Override// ww w . j a v a2 s. c o m public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(activity, ImageDetailActivity.class); i.putExtra(ImageDetailActivity.EXTRA_IMAGE, (int) id); i.putExtra(ImageDetailActivity.IMAGE_URL, arrayList); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the // loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); activity.startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:com.example.android.bitmapfun.ui.SearchStreamGridFragment.java
@TargetApi(16) @Override/* w w w . ja v a2 s .co m*/ public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(getActivity(), StreamImageGridActivity.class); //ImageAdapter ad = (ImageAdapter) parent.getAdapter(); //int cols = ad.getNumColumns(); int cols = mAdapter.getNumColumns(); if (BuildConfig.DEBUG) { Log.d("Connexus", Long.toString(id)); Log.d("Connexus", String.valueOf(position)); Log.d("Connexus", String.valueOf(cols)); Log.d("Connexus", Long.toString(streamList.get(position - cols).id)); Log.d("Connexus", streamList.get(position - cols).name); } Bundle b = new Bundle(); b.putLong(StreamImageGridActivity.EXTRA_STREAM_DATA_STREAM_ID, streamList.get(position - cols).id); b.putString(StreamImageGridActivity.EXTRA_STREAM_DATA_STREAM_NAME, streamList.get(position - cols).name); i.putExtra(StreamImageGridActivity.EXTRA_IMAGE_DATA_URL, b); //i.putExtra(StreamImageGridActivity.EXTRA_IMAGE_DATA_URL, (position - cols)); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } }
From source file:com.fbbackup.TagMeImageGridFragment.java
@TargetApi(16) @Override// www. j a v a2 s .com public void onItemClick(AdapterView<?> parent, View v, int position, long id) { final Intent i = new Intent(getActivity(), TagImageDetailActivity.class); Bundle bundle = new Bundle(); bundle.putStringArray("photo", tagMePicture); bundle.putString("userName", name); i.putExtras(bundle); i.putExtra(ImageDetailActivity.EXTRA_IMAGE, (int) id); if (Utils.hasJellyBean()) { // makeThumbnailScaleUpAnimation() looks kind of ugly here as the // loading spinner may // show plus the thumbnail image in GridView is cropped. so using // makeScaleUpAnimation() instead. ActivityOptions options = ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getWidth(), v.getHeight()); getActivity().startActivity(i, options.toBundle()); } else { startActivity(i); } }