• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Image Show
2
3### Introduction
4
5In this sample, you can select an image from **Gallery** and display it on 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 displayed. The number of selected images is displayed in the upper right corner, and the selected images are displayed in the lower part. You can select 6 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### Required Permissions
22
23[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.
24
25### Dependency
26
27N/A
28
29### Constraints
30
311. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip.
32
332. This sample is based on the stage model, which is supported from API version 9 (SDK version: 3.2.5.5).
34
353. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.991, built on July 6, 2022) must be used.
36