com.github.devnied.emvnfccard.activity.AboutActivity Maven / Gradle / Ivy
package com.github.devnied.emvnfccard.activity;
import android.app.Activity;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.MenuItem;
import android.widget.TextView;
import com.github.devnied.emvnfccard.R;
/**
* About activity
*
* @author MILLAU Julien
*
*/
public class AboutActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
getActionBar().setDisplayHomeAsUpEnabled(true);
TextView content = (TextView) findViewById(R.id.about_content);
content.setMovementMethod(LinkMovementMethod.getInstance());
}
@Override
public boolean onOptionsItemSelected(final MenuItem item) {
switch (item.getItemId()) {
// Respond to the action bar's Up/Home button
case android.R.id.home:
finish();
return true;
}
return super.onOptionsItemSelected(item);
}
}