Fundamental Android UI Design:
User Interface(UI) design,user experience(UX),human computer interaction(HCI).Views:
Views
are the base class for all visual interface elements (Commonly Known aswidgets and Controls).All UI Controls,including the layout classes,are derived fromView
.View Groups:
It is extension of the
View
class.The ViewGroup
class also extended to provide the LayoutManagers that help you layout controls within your Activities.Android provides several common UI controls,widgets,and Layout Manager.
For most graphical applications,it's likely that you'll need to extend and modify these standard
Views
or create composite or entirely new Views
- to provide your own user experience.Andorid UI Layouts:
Layout Managers
are extensions of the ViewGroup
class.The Android SDK includes a number of layout classes.You can use these,modify them ,or create your own to construct the UI for your Views,Fragments,and Activities.
Frame Layout:
The simplest of the
Layout Manager
,the Frame Layout pins each child view within its frame.The default position is the Top-Left
corner,you can use gravity
attribute to change the location.Linear Layout:
A Linear Layout aligns each child View in either a
vertical
or horizontal
line. A Vertical Layout has a column of Views
, a Horizontal Layout has a row of Views
.It contains weight
attribute that will control the relative size of each childView
within available place.Relative Layout:
One of the most flexible of the native Layouts,the
Relative Layout
lets you define the positions of each childView relative to the others and the screen boundaries.Grid Layout:
Introduced in Android 4.0,the
Grid Layout
uses a rectangular grid of infinitely thin lines to layout Views in a series of rows and coloumns.The Grid Layout is increible,flexible and can be used to greatly simplify layouts and reduce, eliminate complex nestingTable Layout:
It is same as HTML tables.Used as vertical,horizontal of infinitely thin lines to layout Views in a series of rows andcoloumns.The Table Layout is increible,flexible and can be used to greatly simplify layouts and reduce, eliminate complex nesting.
No comments:
Post a Comment