From 9e579d342c8cb249bd8b8274b561f4d65c72d8e2 Mon Sep 17 00:00:00 2001 From: dhf <1511447814@qq.com> Date: Tue, 14 Jan 2025 21:30:37 +0800 Subject: [PATCH] =?UTF-8?q?readme=20=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- README_EN.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 README_EN.md diff --git a/README.md b/README.md index 4ec87db..4e69ef5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# 电子相册 +# 基于手势操作实现电子相册 ### 简介 -基于ArkTS实现一个电子相册的案例,通过捏合和拖拽手势控制图片的放大、缩小、左右拖动查看细节等效果。 +本篇codelab通过ArkTS实现一个简易的电子相册,并结合捏合和拖拽手势的能力,实现了相册图片的放大、缩小、左右拖动查看细节等效果。 ![](screenshots/device/album.gif) @@ -27,6 +27,6 @@ ### 约束与限制 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 -2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 -3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 -4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 +2. HarmonyOS系统:HarmonyOS 5.0.0 Release及以上。 +3. DevEco Studio版本:DevEco Studio 5.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 5.0.0 Release SDK及以上。 diff --git a/README_EN.md b/README_EN.md new file mode 100644 index 0000000..82263ba --- /dev/null +++ b/README_EN.md @@ -0,0 +1,32 @@ +# Electronic Album + +### Introduction + +Learn how to implement an electronic album based on ArkTS. You can use pinch and drag gestures to zoom in or out an image, and drag an image to view details. + +![](screenshots/device/album.en.gif) + +### Concepts + +- Swiper: a component that is used to display child components in carousel mode. +- Grid: a component that consists of cells formed by rows and columns. You can specify the cells where items are located to form various layouts. +- Navigation: a component that typically functions as the root container of a page and displays the page title, toolbar, and menu based on the attribute settings. +- List: a component that provides a series of list items with the same width. It supports presentations of the same type of data in a multiple and coherent row style, for example, images or text. +- Gesture group: combines a group of gestures, supporting sequential, parallel, and exclusive recognition. + +### Permissions + +N/A + +### How to Use + +1. Use the pinch gesture to zoom in or zoom out an image. +2. Use the swipe gesture to switch between the left and right images. +3. Use the drag gesture to view details of an enlarged image. + +### Constraints + +1. The sample is only supported on Huawei phones with standard systems. +2. HarmonyOS: HarmonyOS 5.0.0 Release or later. +3. DevEco Studio: DevEco Studio 5.0.0 Release or later. +4. HarmonyOS SDK: HarmonyOS 5.0.0 Release SDK or later. -- Gitee