Responsive Design"

From Documentation
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{ZKDevelopersReferencePageHeader}}
 
{{ZKDevelopersReferencePageHeader}}
 +
 +
__TOC__
  
 
This section describes general concepts regarding responsive design, and how to apply these concepts to ZK pages and components.
 
This section describes general concepts regarding responsive design, and how to apply these concepts to ZK pages and components.
  
== Introduction ==
+
= Sections =
 +
 
 +
= Introduction =
  
 
Designers need to make their web pages accessible regardless of the user’s device or configuration. With an ever-wider array of resolutions and screen size, it becomes increasingly difficult to craft a single experience matching all possible users. Most common approach is to segment the UI experience into multiple parts. These UI fragments would then be arranged based on the client's properties such as client width or device type.
 
Designers need to make their web pages accessible regardless of the user’s device or configuration. With an ever-wider array of resolutions and screen size, it becomes increasingly difficult to craft a single experience matching all possible users. Most common approach is to segment the UI experience into multiple parts. These UI fragments would then be arranged based on the client's properties such as client width or device type.
Line 9: Line 13:
 
All examples can be found here : [https://github.com/zkoss/zkbooks/tree/master/developersreference/developersreference/src/main/webapp/responsiveDesign Git sources]
 
All examples can be found here : [https://github.com/zkoss/zkbooks/tree/master/developersreference/developersreference/src/main/webapp/responsiveDesign Git sources]
  
=Definitions=
+
==Definitions==
 
*Layout: “Layout” in responsive design refer to the logical relationships between UI elements. Notable relationships in this context are:
 
*Layout: “Layout” in responsive design refer to the logical relationships between UI elements. Notable relationships in this context are:
 
**Parent – Child: an element located inside another.
 
**Parent – Child: an element located inside another.
Line 20: Line 24:
 
**Adaptive: Changes the UI experience based on the screen size.
 
**Adaptive: Changes the UI experience based on the screen size.
 
**Dynamic layout: Responsive designs will provide different layouts and even different components altogether depending on the current screen size.
 
**Dynamic layout: Responsive designs will provide different layouts and even different components altogether depending on the current screen size.
 +
 +
==Illustrations==
 +
*Fluid design: Elements are resized, but their layout does not change.
 +
[[File:Fluid.png|600px|center|fluid design illustration]]
 +
 +
*Responsive design: A different layout is generated based on the size of screen.
 +
[[File:Responsive.png|600px|center|responsive design illustration]]
  
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferenceHeadingToc}}
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Latest revision as of 10:12, 23 April 2024


Responsive Design


This section describes general concepts regarding responsive design, and how to apply these concepts to ZK pages and components.

Sections

Introduction

Designers need to make their web pages accessible regardless of the user’s device or configuration. With an ever-wider array of resolutions and screen size, it becomes increasingly difficult to craft a single experience matching all possible users. Most common approach is to segment the UI experience into multiple parts. These UI fragments would then be arranged based on the client's properties such as client width or device type.

All examples can be found here : Git sources

Definitions

  • Layout: “Layout” in responsive design refer to the logical relationships between UI elements. Notable relationships in this context are:
    • Parent – Child: an element located inside another.
    • Ancestor – Descendant: a structurally superior of inferior element along a chain of Parent-Child relationships.
    • Sibling – Sibling: two (or more) elements located in the logical structure as children of the same Parent element.
  • Fluid design: Any UI designed to adapt to the current viewing device by resizing some of its elements to provide a suitable experience. Its characteristics are:
    • Adaptive: Changes the UI experience based on the screen size.
    • Static layout: Fluid design changes properties of elements, but the layout doesn’t change. The relationship between the elements are not altered between versions of this design.
  • Responsive design: Any UI designed to adapt to the current viewing device by providing a different layout for the page elements. Its Characteristics are:
    • Adaptive: Changes the UI experience based on the screen size.
    • Dynamic layout: Responsive designs will provide different layouts and even different components altogether depending on the current screen size.

Illustrations

  • Fluid design: Elements are resized, but their layout does not change.
fluid design illustration
  • Responsive design: A different layout is generated based on the size of screen.
responsive design illustration




Last Update : 2024/04/23

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.