README_en.md
1Chat instance application
2
3Introduction to the
4
5This is a chat like ETS application, using a static layout to build "chat", "contacts", "discover", "ME" four main page.
6
7
8Directions for use
9
101. The application contains four main pages: "Chat", "address book", "Discover" and "ME". Tabs are used to switch modules
11
122. Click the icon in the upper right corner of the chat bar content page to enter the chat information page
13
143. There is a back button in the upper left corner of level 2 and above pages
15
164. Search button Click to enter the search interface, and click "Cancel" on the search page to return
17
185. Click on the icon in the upper right corner of the home page, a window will pop up, and you can choose to enter the page of "Add friends" and "Initiate group chat"
19
206. Click the input box at the bottom of the chat content page to enter content, and click the icon of facial expression to send pictures
21
227. Click on the "Chat Community" of the "Discover" page to enter the "Chat Community" page. Click on the picture of the chat community page to enter the separate page of the picture to zoom in and out, and then move the picture
23
248. Click the first item of the "ME" page to enter the "Personal Information" page
25
269. Click "Settings" item on the "ME" page to enter the "Settings" page. The "Load Switch" page uses lightweight storage, so that the current state can be remembered when the application exits, and the current state can be restored when it is opened next time
27
28Constraints and Limitations
29
301. The SDK version must be 3.1.5.5 or later.
31
322. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.
33
README_zh.md
1# 聊天实例应用
2
3### 简介
4
5这是一个仿聊天类应用,使用了静态布局搭建了不同的页面。为了优化内存与性能体验,在部分list场景使用了懒加载。效果图如下:
6
7 
8
9### 相关概念
10
11懒加载:开发框架提供数据懒加载(LazyForEach组件)从提供的数据源中按需迭代数据,并在每次迭代过程中创建相应的组件。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.应用包含“聊天”、”通讯录“、”发现“、”我“四个主页面,使用Tabs组件实现模块的切换,“聊天”和“通讯录”模块使用了LazyForEach懒加载功能。
20
212.聊天内容页面右上角的图标点击进入聊天信息页面。
22
233.二级及以上页面左上角都有一个返回按钮。
24
254.搜索按钮点击进入搜索界面,搜索页面的“取消”点击会返回。
26
275.首页右上角的图标点击会弹出窗口,可以选择进入”添加好友“和”发起群聊”页面。
28
296.聊天内容页面的下方输入框点击可以输入内容,表情的图标点击可以发送图片。
30
317.“发现”页面的“聊天社区”点击会进入“聊天社区”页面,聊天社区页面的图片可以点击进入图片单独的页面对图片进行缩放操作,然后可以进行移动操作。
32
338.“我”页面的第一条item点击可以进入“个人信息”页面。
34
359.“我”页面的“设置”item点击可以进入“设置”页面 ,“负载开关”页面使用了轻量级存储,可以使应用退出时记住当前状态,下次打开恢复当前状态。
36
37### 约束与限制
38
391.sdk版本要求使用3.1.5.5及以上版本。
40
412.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
42