This class controls activities that displays the results from the lookup. 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) |
Called when the activity is created. More... | |
Private Member Functions | |
void | setupActionBar () |
This class controls activities that displays the results from the lookup.
Definition at line 31 of file DisplayLookupActivity.java.
|
protected |
Called when the activity is created.
When the DisplayLookupActivity is created, this method enables the home/up button and sets the view to the activity_display_lookup. The activity_display_lookup view contains a TableLayout. The table is filled dynamically by this method.
savedInstanceState | The instance state |
Create the table layout From: http://developer.android.com/reference/android/widget/TableLayout.html More information at: http://stackoverflow.com/questions/18207470/adding-table-rows-dynamically-in-android How to separate lines in TableLayout http://stackoverflow.com/questions/5092116/how-can-i-add-separating-lines-between-my-tablerows-that-are-created-programmati
Webviews from http://developer.android.com/reference/android/webkit/WebView.html
Definition at line 45 of file DisplayLookupActivity.java.
References com.jburto2.androidlookup.MainActivity.CNAME, com.jburto2.androidlookup.MainActivity.IP_ADDRESSES, com.jburto2.androidlookup.MainActivity.LOOKUP_NAME, and com.jburto2.androidlookup.MainActivity.PING_RESULTS.
public boolean com.jburto2.androidlookup.DisplayLookupActivity.onCreateOptionsMenu | ( | Menu | menu | ) |
Inflate the menu; this adds items to the action bar if it is present.
menu | The menu |
Definition at line 240 of file DisplayLookupActivity.java.
com.jburto2.androidlookup.DisplayLookupActivity.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 261 of file DisplayLookupActivity.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 227 of file DisplayLookupActivity.java.