文件最后提交记录最后更新时间
!822 901工程适配 * 修改.mainAbility为.MainAbility * 901工程适配 3 年前
!913 修改README * update readme 3 年前
add sample for AtomicLayout Signed-off-by: adslk <liuxin283@huawei.com> 4 年前
!966 README整改 * update README_zh.md 3 年前
!624 AtomicLayout、International、JSMenu、JsBrightness、JsList、BuildCommonView、Proc ess、DefiningPageLayoutAndConnection工程API7至API8适配调试 * AtomicLayout、International、JSMenu、JsBrightness、JsList、BuildCommonView、Proc 4 年前
!624 AtomicLayout、International、JSMenu、JsBrightness、JsList、BuildCommonView、Proc ess、DefiningPageLayoutAndConnection工程API7至API8适配调试 * AtomicLayout、International、JSMenu、JsBrightness、JsList、BuildCommonView、Proc 4 年前
!822 901工程适配 * 修改.mainAbility为.MainAbility * 901工程适配 3 年前
README.md

AtomicLayout

Introduction

This sample illustrates style attributes related to layout effect adaptation, including the hiding feature, proportion feature, and fixed ratio.

With the hiding feature, you can adjust the display priority of components in a container in the horizontal or vertical direction.

With the proportion feature, you can adjust the proportion of each component in a container so that each of them is always arranged in a proportional space of the container.

You can scale up or down a component with fixed ratio while retaining its aspect ratio.

Usage

In this sample, there are three buttons on the home screen. You can click them to display the corresponding screen.

On the feature display screen, the rectangle in light yellow is a container, and it accommodates three components: A, B, and C. You can click the buttons to change the size of the components and display them in different ways.

Constraints

  • The hiding and proportion features must be used in a flex layout that does not support cross-row display.
  • This sample can only be run on mini-system devices.