add readme and modify screenshots

Signed-off-by: zhangxinlogo <zhangxin360@huawei.com>
This commit is contained in:
zhangxinlogo 2021-07-09 18:46:32 +08:00
parent 0cb85633cc
commit 0b8efdf1fa
7 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Fraction<a name="EN-US_TOPIC_0000001172202293"></a>
### Introduction<a name="section103mcpsimp"></a>
This sample provides an ability-based layout: fraction. A fraction has its own lifecycle and can be placed in an ability container. You can perform the following operations on fractions: add, replace, hide, show, push into the stack, and pulled from the stack.
### Usage<a name="section105mcpsimp"></a>
1. On the home screen of your app, touch **Replace Fraction** to replace the fraction.
2. Touch **Next Page** to go to the next page.
3. Touch **Hide Fraction** to hide the fraction. The button then changes to **Show Fraction**, touching which will show the fraction again.
4. Touch **Push into Stack** to push the fraction into the stack. The button then changes to **Pop from Stack**, touching which will pull the fraction from the stack.
### Constraints<a name="section111mcpsimp"></a>
This sample can only be run on standard-system devices.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 132 KiB