Back to project page ion.
The source code is released under:
Apache License
If you think the Android project ion 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.koushikdutta.ion.sample; /* w w w . j a v a 2 s . c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.view.View; import android.widget.Button; /** * Created by koush on 5/31/13. */ public class Samples extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.samples); Button twitter = (Button)findViewById(R.id.twitter); twitter.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, Twitter.class)); } }); Button twitterGson = (Button)findViewById(R.id.twitter_gson); twitterGson.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, TwitterGson.class)); } }); Button fileDownload = (Button)findViewById(R.id.download); fileDownload.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, ProgressBarDownload.class)); } }); Button fileUpload = (Button)findViewById(R.id.upload); fileUpload.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, ProgressBarUpload.class)); } }); Button googleImageSearch = (Button)findViewById(R.id.google_image_search); googleImageSearch.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, GoogleImageSearch.class)); } }); Button imageViewSample = (Button)findViewById(R.id.image_view); imageViewSample.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, ImageViewSample.class)); } }); Button gallerySample = (Button)findViewById(R.id.gallery); gallerySample.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, GallerySample.class)); } }); Button deepZoomSample = (Button)findViewById(R.id.deepzoom); deepZoomSample.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, DeepZoomSample.class)); } }); Button lollipopTransitionSample = (Button)findViewById(R.id.lollipop_transition); if (Build.VERSION.SDK_INT >= 21) { lollipopTransitionSample.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Samples.this, LollipopTransition.class)); } }); } else { lollipopTransitionSample.setVisibility(View.GONE); } } }