This class controls activities that displays the information page. More...
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 () |
This class controls activities that displays the information page.
Definition at line 22 of file DisplayInfoActivity.java.
|
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
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.
menu | The menu |
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
item | The MenuItem |
Definition at line 99 of file DisplayInfoActivity.java.
|
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.