Ui layout (incomplete)

614 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
614
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
46
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Ui layout (incomplete)

  1. 1. Android Application DevelopmentUser Interface: Layout Basics
  2. 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. 3. User Interface: Layout in Eclipse
  4. 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. 5. Defining a Layout Programmatically

×