# ImageComment **Repository Path**: Fe26/image-comment ## Basic Information - **Project Name**: ImageComment - **Description**: 本示例通过拉起系统相机实现发布图片评论。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 20 - **Created**: 2025-03-17 - **Last Updated**: 2025-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Posting an Image Comment ### Overview This sample shows how to post a comment on an image by starting the system camera. ### Preview ### How to Use 1. Open the app. Touch the text box, and then touch the camera button to start the system camera. 2. Take a photo, return the app page, and touch the button to post it. ### Project Directory ``` ├──entry/src/main/ets │ ├──commmon │ │ └──CommonConstants.ets // Common constants │ ├──entryability │ │ └──EntryAbility.ets // Entry ability │ ├──model │ │ ├──CommentModel.ets // Comment class │ │ └──MockCommentData.ets // Comment data │ ├──pages │ │ └──Index.ets // Home page │ ├──utils │ │ └──CameraUtils.ets // Start the camera │ └──view │ ├──CommentInputDialog.ets // Post comment dialog box │ ├──CommentItemView.ets // Comment components │ └──ImageListView.ets // Comment image list └──entry/src/main/resources // Static resources ``` ### Required Permissions N/A ### Constraints 1. The sample app is supported only on Huawei phones running the standard system. 2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. 3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. 4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later.