diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..5f53dd9a7ac76b046bf290359671a3d6ba82906d --- /dev/null +++ b/README.en.md @@ -0,0 +1,56 @@ +# List Nested Sliding + +### Overview +This sample uses the **scrollToIndex** method of the **List** component to implement nested sliding of multiple **List** components. + +### Preview + +| Home page | +|:-----------------------------------------:| +| ![home](screenshots/devices/phone_en.gif) | + +### How to Use + +Open the sample app, and slide on the screen. + +### Project Directory + +``` +├──entry/src/main/ets/ +│ ├──constants +│ │ └──CommonConstants.ets // Common constants +│ ├──entryability +│ │ └──EntryAbility.ets // Entry ability +│ ├──pages +│ │ └──Index.ets // Home page +│ ├──view +│ │ └──CardItemComponent.ets // Custom child components +│ └──viewmodel +│ ├──CardItem.ets // Card entity class +│ ├──ClassifyModel.ets // List entity class +│ └──ClassifyViewModel.ets // Data class +└──entry/src/main/resources // Static resources + +``` + +### How to Implement + +Use the **scrollToIndex** method of the **List** component to implement one list to follow and scroll to the corresponding position when another list is scrolled. + +### Required Permissions + +N/A + +### Dependencies + +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. diff --git a/screenshots/devices/phone_en.gif b/screenshots/devices/phone_en.gif new file mode 100644 index 0000000000000000000000000000000000000000..debe25d67da03b193b29cb7932ee2b60e2a611a4 Binary files /dev/null and b/screenshots/devices/phone_en.gif differ