Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-202479

AppScope/H25-Oct-20244 KiB

build-profile.json5H A D25-Oct-20241.1 KiB

entry/H25-Oct-20244 KiB

hvigor/H25-Oct-20244 KiB

hvigorfile.jsH A D25-Oct-2024168

hvigorwH A D25-Oct-20242 KiB

hvigorw.batH A D25-Oct-20242 KiB

imagelibrary/H25-Oct-20244 KiB

oh-package.json5H A D25-Oct-2024815

ohosTest.mdH A D25-Oct-20241.1 KiB

README.mdH A D25-Oct-20241.7 KiB

README_zh.mdH A D25-Oct-20245.1 KiB

screenshots/devices/H25-Oct-20244 KiB

README.md

1# Image Show
2
3### Introduction
4
5In this sample, you can add images from **Gallery** to the offering review page.
6
7This sample uses the [**\<TextArea>**](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md) component to implement multi-line text input and the [mediaLibrary](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-mediaquery.md) class to obtain and select images.
8
9### Usage
10
111. Touch **Add image**. The page for selecting images is displayed.
12
132. Select the images to be added. The number of selected images is displayed in the upper right corner, and the thumbnails of selected images are displayed in the lower part. You can select six images at most.
14
153. Touch **Next**. The home page is displayed, and the images selected are displayed on the home page. You can touch **Add image** again to select other images.
16
174. Touch the text box to input your comment.
18
195. Touch the back button to exit the app.
20
21### Display Effect
22
23![](screenshots/devices/en/index.png) ![](screenshots/devices/en/not_choice.png) ![](screenshots/devices/en/choice.png) ![](screenshots/devices/en/show.png)
24
25### Required Permissions
26
27[ohos.permission.READ_MEDIA](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md), which allows an app to read media files from the user's external storage.
28
29### Dependency
30
31N/A
32
33### Constraints
34
351. This sample can only be run on standard-system devices that use the Rockchip RK3568 development board.
36
372. This sample is based on the stage model, which is supported from API version 9 (SDK version: 3.2.5.5). 
38
393. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.991, built on July 6, 2022) must be used.
40