732143c8Add on Mar 18History
FilesLast commitLast 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
README

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

  1. Tap EdgeBlur to go to the secondary page and implement the edge blur effect of the list.
  2. Tap LoopScrolling to go to the secondary page and swipe left or right to implement the loop scrolling effect.
  3. 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.
  4. Tap PullUpLoading to go to the secondary page and swipe to the bottom to implement the pull-up loading effect.
  5. 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.
  6. Tap ScrollLeftAndRightToRefresh to go to the secondary page and swipe left or right to implement the left-right scrolling refresh effect.
  7. Tap ScrollToTheBottom to go to the secondary page and implement the effect of scrolling to the bottom of the list.
  8. 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.