Back to project page CATaZine-Live.
The source code is released under:
GNU General Public License
If you think the Android project CATaZine-Live 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.melegy.catazine.activity; /*ww w . ja v a 2s .c o m*/ import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.text.method.ScrollingMovementMethod; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; import android.widget.TextView; import com.melegy.catazine.R; import com.melegy.catazine.utils.UiUtils; public class AboutActivity extends BaseActivity { protected void onCreate(Bundle savedInstanceState) { UiUtils.setPreferenceTheme(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); getActionBar().setDisplayHomeAsUpEnabled(true); final TextView about = (TextView) findViewById(R.id.about_license); about.setMovementMethod(new ScrollingMovementMethod()); final ImageView more = (ImageView) findViewById(R.id.imageView4); more.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://plus.google.com/u/0/b/111452639361535045057/111452639361535045057")); startActivity(browserIntent); } }); final ImageView facebook = (ImageView) findViewById(R.id.imageView1); facebook.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.facebook.com/CATazineLive")); startActivity(browserIntent); } }); final ImageView twitter = (ImageView) findViewById(R.id.imageView2); twitter.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com/catazinelive")); startActivity(browserIntent); } }); final ImageView icon = (ImageView) findViewById(R.id.about_icon); icon.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://catazinelive.net/")); startActivity(browserIntent); } }); } @Override public boolean onOptionsItemSelected(MenuItem menuItem) { switch (menuItem.getItemId()) { case android.R.id.home: finish(); return true; } return (super.onOptionsItemSelected(menuItem)); } }