Name | Date | Size | ||
---|---|---|---|---|
.. | 25-Oct-2024 | 4 KiB | ||
.gitignore | H A D | 25-Oct-2024 | 79 | |
AppScope/ | H | 25-Oct-2024 | 4 KiB | |
build-profile.json5 | H A D | 25-Oct-2024 | 1.1 KiB | |
entry/ | H | 25-Oct-2024 | 4 KiB | |
hvigor/ | H | 25-Oct-2024 | 4 KiB | |
hvigorfile.js | H A D | 25-Oct-2024 | 168 | |
hvigorw | H A D | 25-Oct-2024 | 2 KiB | |
hvigorw.bat | H A D | 25-Oct-2024 | 2 KiB | |
imagelibrary/ | H | 25-Oct-2024 | 4 KiB | |
oh-package.json5 | H A D | 25-Oct-2024 | 815 | |
ohosTest.md | H A D | 25-Oct-2024 | 1.1 KiB | |
README.md | H A D | 25-Oct-2024 | 1.7 KiB | |
README_zh.md | H A D | 25-Oct-2024 | 5.1 KiB | |
screenshots/devices/ | H | 25-Oct-2024 | 4 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    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