Building User Interfaces:
Important Topics
Major Design Topics
that influence Material Design
User Interface (UI) design
User Experience (UX)
Human Computer Interaction (HCI)
*These are not covered in depth in this book
Density-Independent Design:
Basics
Density-Independent Design:
Fundamental Features
in Android that support it
Android User Interface:
Basic Components
Android User Interface:
Assigning User Interface to an Activity
Layouts:
Most Commonly Used Layouts
FrameLayout
LinearLayout
RelativeLayout
ConstraintLayout
Layouts:
FrameLayout
Summary
Layouts:
LinearLayout
Summary
Layouts:
RelativeLayout
Summary
Layouts:
ConstraintLayout
Summary
Layouts:
How layouts are sized
Defining Layouts:
XML Layout Basics
Layouts:
Constants:
match_parent
Used with width and height generally.
Expands the View to match the available space within the parent View, Fragment or Activity
Layouts:
Constants:
wrap_content
Generally used with width and height.
Sets the size of a View to the minimum required to contain the contents it displays,
such as the height required to display a wrapped text string.
Optimizing Layouts:
General Tips
Optimizing Layouts:
<merge></merge> tag
Optimizing Layouts:
<include></include> tag
Optimizing Layouts:
ViewStub
Android Widget Toolbox:
Most Common Controls/Views
(12)
Android Widget Toolbox:
Common Controls:
TextView:
Basic Function
A standard, read-only text label.
Supports multiline display, string formatting and automatic word-wrapping.
Android Widget Toolbox:
Common Controls:
EditText:
Basic Function
An editable text entry box.
Accepts multi-line entry, word-wrapping, and hint text.
Android Widget Toolbox:
Common Controls:
ImageView:
Basic Function
A View that shows a single image.
Android Widget Toolbox:
Common Controls:
Toolbar:
Basic Function
A View that shows a title and common actions.
Often used as the main app bar at the top of an Activity.