Skip to main content

User Interface

  • Chapter
  • First Online:
Android Quick APIs Reference
  • 2067 Accesses

Abstract

Although every Android application runs as a full-screen application, the Android platform still provides a certain amount of window features, such as the action bar, toasts, dialogs, and notifications. This chapter provides a brief overview of these fundamental window features. Although not every Android application benefits from toasts and dialogs, the action bar and notifications are frequently used by almost every Android application to provide a smooth and consistent user experience.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 37.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    http://developer.android.com/reference/android/app/ActionBar.html .

  2. 2.

    http://developer.android.com/reference/android/app/Activity.html#getActionBar() .

  3. 3.

    http://developer.android.com/reference/android/app/ActionBar.html#hide() .

  4. 4.

    http://developer.android.com/guide/topics/resources/menu-resource.html#item-element .

  5. 5.

    http://developer.android.com/reference/android/view/Menu.html .

  6. 6.

    http://developer.android.com/reference/android/app/Activity.html #onCreateOptionsMenu(android.view.Menu) .

  7. 7.

    http://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem) .

  8. 8.

    http://developer.android.com/reference/android/view/MenuItem.html .

  9. 9.

    http://developer.android.com/reference/android/widget/SearchView.html .

  10. 10.

    http://developer.android.com/reference/android/widget/Toast.html .

  11. 11.

    http://developer.android.com/reference/android/widget/Toast.html#makeText(android.content.Context, int, int) .

  12. 12.

    http://developer.android.com/reference/android/widget/Toast.html#show() .

  13. 13.

    http://developer.android.com/reference/android/app/Dialog.html .

  14. 14.

    http://developer.android.com/reference/android/app/AlertDialog.html .

  15. 15.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html .

  16. 16.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setMessage(java.lang.CharSequence) .

  17. 17.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setTitle(java.lang.CharSequence) .

  18. 18.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#create().

  19. 19.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setPositiveButton(int,android.content.DialogInterface.OnClickListener) .

  20. 20.

    http://developer.android.com/reference/android/content/DialogInterface.OnClickListener.html .

  21. 21.

    http://developer.android.com/reference/android/content/DialogInterface.OnClickListener.html#onClick(android.content.DialogInterface, int) .

  22. 22.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setNegativeButton(java.lang.CharSequence,android.content.Dialog Interface.OnClickListener) .

  23. 23.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setNeutralButton(java.lang.CharSequence,android.content.Dialog Interface.OnClickListener) .

  24. 24.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html.#setItems(java.lang.CharSequence[],android.content.DialogInterface.OnClickListener) .

  25. 25.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setMultiChoiceItems(java.lang.CharSequence[], boolean[], android.content.DialogInterface.OnMultiChoiceClickListener) .

  26. 26.

    http://developer.android.com/reference/android/content/DialogInterface.OnMultiChoiceClickListener.html .

  27. 27.

    http://developer.android.com/reference/android/app/AlertDialog.Builder.html#setSingleChoiceItems(java.lang.CharSequence[], int, android.content.DialogInterface.OnClickListener) .

  28. 28.

    http://developer.android.com/reference/android/app/DatePickerDialog.html .

  29. 29.

    http://developer.android.com/reference/android/widget/DatePicker.html .

  30. 30.

    http://developer.android.com/reference/android/app/DatePickerDialog. OnDateSetListener.html .

  31. 31.

    http://developer.android.com/reference/android/app/TimePickerDialog.html .

  32. 32.

    http://developer.android.com/reference/android/widget/TimePicker.html .

  33. 33.

    http://developer.android.com/reference/android/app/TimePickerDialog. OnTimeSetListener.html .

  34. 34.

    http://developer.android.com/reference/android/app/ProgressDialog.html .

  35. 35.

    http://developer.android.com/reference/android/widget/ProgressBar.html .

  36. 36.

    http://developer.android.com/reference/android/app/DialogFragment.html .

  37. 37.

    http://developer.android.com/reference/android/app/DialogFragment. html#onCreateDialog(android.os.Bundle) .

  38. 38.

    http://developer.android.com/reference/android/app/DialogFragment.html#show(android.app.FragmentManager, java.lang.String) .

  39. 39.

    http://developer.android.com/reference/android/app/NotificationManager.html .

  40. 40.

    http://developer.android.com/reference/android/content/Context.html# NOTIFICATION_SERVICE .

  41. 41.

    http://developer.android.com/reference/android/app/Notification.html .

  42. 42.

    http://developer.android.com/reference/android/app/Notification.Builder.html .

  43. 43.

    http://developer.android.com/reference/android/app/Notification.Builder.html#build() .

  44. 44.

    http://developer.android.com/reference/android/app/NotificationManager.html#notify(int, android.app.Notification) .

  45. 45.

    http://developer.android.com/reference/android/app/Notification.Builder.html#setContentIntent(android.app.PendingIntent) .

  46. 46.

    http://developer.android.com/reference/android/app/TaskStackBuilder.html .

  47. 47.

    http://developer.android.com/reference/android/app/TaskStackBuilder.html #addParentStack(android.app.Activity) .

  48. 48.

    http://developer.android.com/guide/topics/manifest/activity-element.html#parent .

  49. 49.

    http://developer.android.com/reference/android/app/Notification.Builder.html#addAction(int, java.lang.CharSequence, android.app.PendingIntent) .

  50. 50.

    http://developer.android.com/reference/android/app/Notification. InboxStyle.html .

  51. 51.

    http://developer.android.com/reference/android/app/Notification.Builder.html#setStyle(android.app.Notification.Style) .

  52. 52.

    http://developer.android.com/reference/android/app/NotificationManager.html#cancel(int) .

  53. 53.

    http://developer.android.com/reference/android/app/NotificationManager.html#cancelAll() .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Onur Cinar

About this chapter

Cite this chapter

Cinar, O. (2015). User Interface. In: Android Quick APIs Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0523-5_6

Download citation

Publish with us

Policies and ethics