android introduction n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Android Introduction PowerPoint Presentation
Download Presentation
Android Introduction

Loading in 2 Seconds...

play fullscreen
1 / 8

Android Introduction - PowerPoint PPT Presentation


  • 105 Views
  • Uploaded on

Android Introduction. Graphical User Interface. Goal. Familiarize with the main types of GUI components Concepts: Layouts Widgets Menus. View Hierarchy. All the views in a window are arranged in a tree You show the tree by calling setContentView(rootNode) in the activity. Layout.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Android Introduction' - tim


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
android introduction

Android Introduction

Graphical User Interface

slide2
Goal
  • Familiarize with the main types of GUI components
  • Concepts:
    • Layouts
    • Widgets
    • Menus
view hierarchy
View Hierarchy
  • All the views in a window are arranged in a tree
  • You show the tree by calling setContentView(rootNode) in the activity
layout
Layout
  • Defines how elements are positioned relative to each other (next to each other, under each other, in a table, grid, etc.)
  • Can have a different layouts for each ViewGroup
widgets
Widgets
  • All are View objects
  • Examples:
    • TextFields
    • EditFields
    • Buttons
    • Checkboxes
    • RadioButtons
    • etc.
ui events
UI Events
  • Usually handled by defining a Listener of the form On<something>Listener and register it with the View
  • For example:
    • OnClickListener() for handling clicks on Buttons or Lists
    • OnTouchListener() for handling touches
    • OnKeyListerner() for handling key presses
  • Alternatively, Override an existing callback if we implemented our own class extending View
menus
Menus
  • Context Menu
  • Sub-menu
  • Options Menu
menus continued
Menus (continued)

MenuItem

MenuItem

Has 0 or more

Has 0 or more

Has 0 or more

SubMenu