AndroidLookup  0.02
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
com.jburto2.androidlookup.DisplayInfoActivity Class Reference

This class controls activities that displays the information page. More...

Inheritance diagram for com.jburto2.androidlookup.DisplayInfoActivity:

Public Member Functions

boolean onCreateOptionsMenu (Menu menu)
 Inflate the menu; this adds items to the action bar if it is present. More...
 
boolean onOptionsItemSelected (MenuItem item)
 

Protected Member Functions

void onCreate (Bundle savedInstanceState)
 Method called when activity is created. This method sets the content view to activity_display_info, then creates an WebView view on which it displays the help information. The help information is stored in an an HTML file in the assets directory. R.string.about_text gives the location of the file. More...
 

Private Member Functions

void setupActionBar ()
 

Detailed Description

This class controls activities that displays the information page.

Author
jburton

Definition at line 22 of file DisplayInfoActivity.java.

Member Function Documentation

protected void com.jburto2.androidlookup.DisplayInfoActivity.onCreate ( Bundle  savedInstanceState)
protected

Method called when activity is created. This method sets the content view to activity_display_info, then creates an WebView view on which it displays the help information. The help information is stored in an an HTML file in the assets directory. R.string.about_text gives the location of the file.

More on scrolling from http://stackoverflow.com/questions/16623337/how-to-scroll-table-layout-in-horizontal-and-vertical-in-android

Parameters
savedInstanceState

Webview information at http://stackoverflow.com/questions/3295381/android-html-resource-with-references-to-other-resources

Definition at line 37 of file DisplayInfoActivity.java.

public boolean com.jburto2.androidlookup.DisplayInfoActivity.onCreateOptionsMenu ( Menu  menu)

Inflate the menu; this adds items to the action bar if it is present.

Parameters
menuThe menu
Returns
true

Definition at line 79 of file DisplayInfoActivity.java.

com.jburto2.androidlookup.DisplayInfoActivity.onOptionsItemSelected ( MenuItem  item)

This ID represents the Home or Up button. In the case of this activity, the Up button is shown. Use NavUtils to allow users to navigate up one level in the application structure. For more details, see the Navigation pattern on Android Design:

http://developer.android.com/design/patterns/navigation.html#up-vs-back

Parameters
itemThe MenuItem
Returns
If Home or Up, navigate up and return true.
Otherwise, parent class functionality.

Definition at line 99 of file DisplayInfoActivity.java.

private void com.jburto2.androidlookup.DisplayInfoActivity.setupActionBar ( )
private

Set up the android.app.ActionBar, if the API is available. This enables the up/home button to allow users to return to the main screen.

Definition at line 66 of file DisplayInfoActivity.java.


The documentation for this class was generated from the following file: