Back to project page mobile-android.
The source code is released under:
MIT License
If you think the Android project mobile-android 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.manyconf.conference; // w w w . java 2 s .co m import android.app.Activity; import android.os.Bundle; import android.text.method.ScrollingMovementMethod; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import java.text.DateFormat; import java.util.ArrayList; public class SpeakerActivity extends Activity { private SpeakerModel speaker; private DateFormat dateFormat = DateFormat.getTimeInstance(); private TextView nameTitleView; private TextView bioTextView; private TextView companyTextView; @Override public void onCreate(Bundle savedInstanceState) { Log.d("manyconf.speak", "onCreate()"); super.onCreate(savedInstanceState); Bundle data = getIntent().getExtras(); speaker = (SpeakerModel) data.getParcelable("speaker"); // Set up user interface setContentView(R.layout.activity_speaker); nameTitleView = (TextView) findViewById(R.id.name); bioTextView = (TextView) findViewById(R.id.biography); bioTextView.setMovementMethod(new ScrollingMovementMethod()); companyTextView = (TextView) findViewById(R.id.company); // Fill user interface nameTitleView.setText(speaker.firstName + " " + speaker.lastName); bioTextView.setText(speaker.biography); if(speaker.biography == null || speaker.biography.equals("null")) { bioTextView.setText(""); } companyTextView.setText(speaker.company); if(speaker.company == null || speaker.company.equals("null")) { companyTextView.setText(""); } this.setTheme(); } private void setTheme() { nameTitleView.setTypeface(Theme.current().boldFont); bioTextView.setTypeface(Theme.current().regularFont); companyTextView.setTypeface(Theme.current().regularFont); } @Override public boolean onOptionsItemSelected(MenuItem item) { Log.d("manyconf.pres", "onOptionsItemSelected()"); switch (item.getItemId()) { case android.R.id.home: // If user taps the Up button in the navbar, just finish() Log.d("manyconf.pres", "finish"); finish(); return true; } Log.d("manyconf.pres", "call super"); return super.onOptionsItemSelected(item); } }