| Files | Last commit | Last update |
|---|---|---|
| 1 year ago | ||
| 8 months ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 8 months ago | ||
| 8 months ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago |
Common List Operations
Overview
This sample demonstrates common list operations based on the List component, covering key features such as loop scrolling, pull-up loading, scrolling to the bottom, scrolling to a specified position, left-right scrolling refresh, unilateral rebound effect, maintaining visible area content, and list edge blur effect.
Effect

How to Use
- Tap EdgeBlur to go to the secondary page and implement the edge blur effect of the list.
- Tap LoopScrolling to go to the secondary page and swipe left or right to implement the loop scrolling effect.
- Tap MaintainVisibleAreaContent to go to the secondary page and tap Insert Data to keep the position of visible content unchanged when inserting data above the display area.
- Tap PullUpLoading to go to the secondary page and swipe to the bottom to implement the pull-up loading effect.
- Tap RollingMonitoring to go to the secondary page, tap scroll 200 to scroll to the specified position, and tap Partial_Refresh to refresh partial data.
- Tap ScrollLeftAndRightToRefresh to go to the secondary page and swipe left or right to implement the left-right scrolling refresh effect.
- Tap ScrollToTheBottom to go to the secondary page and implement the effect of scrolling to the bottom of the list.
- Tap UnilateralRebound to go to the secondary page and swipe to the bottom or top to trigger the unilateral rebound effect.
Project Directory
├──entry/src/main/ets
│ ├──entryability
│ │ └──EntryAbility.ets // Entry ability lifecycle callbacks
│ ├──entrybackupability
│ │ └──EntryBackupAbility.ets // Entry ability
│ └──pages
│ ├──EdgeBlur.ets // View layer - edge blur effect
│ ├──Index.ets // View layer - home page
│ ├──LoopScrolling.ets // View layer - loop scrolling
│ ├──MaintainVisibleAreaContent.ets // View layer - maintaining the visible area content
│ ├──PullUpLoading.ets // View layer - pull-up loading
│ ├──RollingMonitoring.ets // View layer - scrolling to a specified position
│ ├──ScrollLeftAndRightToRefresh.ets // View layer - scrolling left and right for refresh
│ ├──ScrollToTheBottom.ets // View layer - scrolling to the bottom
│ └──UnilateralRebound.ets // View layer - unilateral rebound effect
└──entry/src/main/resources // Static resources
Required Permissions
N/A
Constraints
- This sample is only supported on Huawei phones running standard systems.
- The HarmonyOS version must be HarmonyOS 5.0.5 Release or later.
- The DevEco Studio version must be DevEco Studio 5.0.5 Release or later.
- The HarmonyOS SDK version must be HarmonyOS 5.0.5 Release SDK or later.