Ui layout (incomplete)

  • 354 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
354
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
35
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Android Application DevelopmentUser Interface: Layout Basics
  • 2. User Interface: Layouts● In the Android developer community the term layout is used to mean one of the following two things: ○ A type of resource that defines what is drawn on the screen. Layout resources are stored as XML files in the /res/layout resource directory for the application. A layout resource is simply a template for a user interface screen or portion of a screen. ○ A type of view class whose primary purpose is to organize other controls. These layout classes (LinearLayout, RelativeLayout, TableLayout etc.) are used to display child controls, such as text controls or buttons or images on the screen.● Android user interfaces can be defined as layout resources in XML or created programmatically.
  • 3. User Interface: Layout in Eclipse
  • 4. Defining an XML Layout Resource● The most convenient and maintainable way to design UI● Simplifies the UI design process● This way, we can separate view and logic easily
  • 5. Defining a Layout Programmatically