| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 22-Oct-2025 | - | 35 | 32 | ||
| entry/ | 22-Oct-2025 | - | 11,395 | 10,586 | ||
| hvigor/ | 22-Oct-2025 | - | 38 | 36 | ||
| screenshots/device/ | 22-Oct-2025 | - | ||||
| .gitignore | D | 22-Oct-2025 | 133 | 12 | 12 | |
| README_zh.md | D | 22-Oct-2025 | 6.2 KiB | 151 | 130 | |
| build-profile.json5 | D | 22-Oct-2025 | 1.4 KiB | 58 | 57 | |
| code-linter.json5 | D | 22-Oct-2025 | 958 | 35 | 34 | |
| hvigorfile.ts | D | 22-Oct-2025 | 843 | 22 | 5 | |
| oh-package.json5 | D | 22-Oct-2025 | 809 | 26 | 24 |
README_zh.md
1# ArkUI使用滚动类指南文档示例 2 3### 介绍 4 5本示例通过使用[ArkUI指南文档](https://gitcode.com/openharmony/docs/tree/master/zh-cn/application-dev/ui)中各场景的开发示例,展示在工程中,帮助开发者更好地理解ArkUI提供的组件及组件属性并合理使用。该工程中展示的代码详细描述可查如下链接: 6 71. [创建列表 (List)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-layout-development-create-list.md)。 82. [创建弧形列表 (ArcList)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-layout-development-create-arclist.md)(圆形屏幕推荐使用) 93. [创建网格 (Grid/GridItem)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-layout-development-create-grid.md)。 104. [创建瀑布流 (WaterFlow)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-layout-development-create-waterflow.md) 115. [创建轮播 (Swiper)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-layout-development-create-looping.md)。 126. [创建弧形轮播 (ArcSwiper)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-layout-development-arcswiper.md)(圆形屏幕推荐使用) 137. [选项卡 (Tabs)](https://gitcode.com/openharmony/docs/blob/OpenHarmony-5.1.0-Release/zh-cn/application-dev/ui/arkts-navigation-tabs.md) 14### 效果预览 15 16| 首页 | 列表类组件目录 | 列表中显示数据示例 | 17|------------------------------------|------------------------------------|------------------------------------| 18|  |  |  | 19 20### 使用说明 21 221. 在主界面,可以点击对应卡片,选择需要参考的组件示例。 23 242. 在组件目录选择详细的示例参考。 25 263. 进入示例界面,查看参考示例。 27 284. 通过自动测试框架可进行测试及维护。 29 30### 工程目录 31``` 32entry/src/main/ets/ 33|---entryability 34|---pages 35| |---arcList //弧形列表 36| | |---ArcListAcrScrollBar.ets 37| | |---ArcListArcIndexerBar.ets 38| | |---arcListBuiltInScrollerBar.ets 39| | |---ArcListContents.ets 40| | |---ArcListCrown.ets 41| | |---ArcListShow.ets 42| | |---ArcListSideSlip.ets 43| | |---ArcListStyles.ets 44| | |---ArcLongList.ets 45| | |---index.ets 46| |---arcSwiper //弧形轮播 47| | |---ArcSwiperAction.ets 48| | |---ArcSwiperHorizontal.ets 49| | |---ArcSwiperSideSlip.ets 50| | |---ArcSwiperStyles.ets 51| | |---ArcSwiperToggle.ets 52| | |---ArcSwiperVertical.ets 53| | |---index.ets 54| |---grid //网格 55| | |---DataInGrid.ets 56| | |---GridCalculator.ets 57| | |---GridDataSource.ets 58| | |---GridLayout.ets 59| | |---GridScrollbar.ets 60| | |---GridSideToSide.ets 61| | |---index.ets 62| | |---LongGrid.ets 63| | |---ScrollableGrid.ets 64| | |---ScrollPosition.ets 65| |---list //列表 66| | |---AddListItem.ets 67| | |---CollapseAndExpand.ets 68| | |---ControlledScrollPositionList.ets 69| | |---CustomListStyle.ets 70| | |---DataInList.ets 71| | |---DeleteListItem.ets 72| | |---GroupedList.ets 73| | |---index.ets 74| | |---ListChatRoom.ets 75| | |---ListDataSource.ets 76| | |---ListIteration.ets 77| | |---ListLayout.ets 78| | |---LongList.ets 79| | |---ResponsiveScrollPositionList.ets 80| | |---StickyHeaderList.ets 81| | |---SwipeListItem.ets 82| | |---TaggedListItems.ets 83| |---swiper //轮播 84| | |---index.ets 85| | |---SwiperAndTabsLinkage.ets 86| | |---SwiperAutoPlay.ets 87| | |---SwiperCustomAnimation.ets 88| | |---SwiperDirection.ets 89| | |---SwiperIgnoreComponentSize.ets 90| | |---SwiperIndicatorStyle.ets 91| | |---SwiperLoop.ets 92| | |---SwiperMultiPage.ets 93| | |---SwiperPageSwitchMethod.ets 94| |---tabs //选项卡 95| | |---AgeFriendlyTabs.ets 96| | |---BottomTabBar.ets 97| | |---ContentWillChange.ets 98| | |---CustomTabBar.ets 99| | |---FixedTabBar.ets 100| | |---index.ets 101| | |---ScrollableTabBar.ets 102| | |---SideTabBar.ets 103| | |---SwipeLockedTabBar.ets 104| | |---TabsLayout.ets 105| | |---TopTabBar.ets 106| |---waterFlow //瀑布流 107| | |---AgeFriendlyTabs.ets 108| | |---BottomTabBar.ets 109| | |---ContentWillChange.ets 110| | |---CustomTabBar.ets 111| | |---FixedTabBar.ets 112| | |---index.ets 113| | |---WaterFlowDataSource.ets 114| | |---WaterFlowDynamicSwitchover.ets 115| | |---WaterFlowGroupingMixing.ets 116| | |---WaterFlowInfiniteScrolling.ets 117| | |---WaterFlowInfiniteScrollingEarly.ets 118|---pages 119| |---Index.ets // 应用主页面 120entry/src/ohosTest/ 121|---ets 122| |---index.test.ets // 示例代码测试代码 123``` 124 125### 相关权限 126 127不涉及。 128 129### 依赖 130 131不涉及。 132 133### 约束与限制 134 1351.本示例仅支持标准系统上运行, 支持设备:RK3568。 136 1372.本示例为Stage模型,支持API18版本full-SDK,版本号:5.1.0.107,镜像版本号:OpenHarmony_5.1.0 Release。 138 1393.本示例需要使用DevEco Studio 5.0.5 Release (Build Version: 5.0.13.200, built on May 13, 2025)及以上版本才可编译运行。 140 141### 下载 142 143如需单独下载本工程,执行如下命令: 144 145```` 146git init 147git config core.sparsecheckout true 148echo code/DocsSample/ArkUIDocSample/ScrollableComponent > .git/info/sparse-checkout 149git remote add origin https://gitee.com/openharmony/applications_app_samples.git 150git pull origin master 151````