# PullToZoomInListView **Repository Path**: HarmonyOS-tpc/PullToZoomInListView ## Basic Information - **Project Name**: PullToZoomInListView - **Description**: 一个自定义的列表视图 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-04-01 - **Last Updated**: 2025-02-06 ## Categories & Tags **Categories**: harmonyos-listview **Tags**: None ## README # PullToZoomInListView ## 概述 1、描述:一个自定义的列表视图,拉到放大和视差效果头像路径应用程序 2、实现功能:顶部图片放大 ## 效果图 ## 集成引用 方法一: 1、添加har包到libs文件夹内 2、在entry的gradle内添加如下代码: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) } 方法二: 1、配置中心仓: repositories { mavenCentral() } 2、在entry的gradle内添加如下代码: dependencies { implementation 'io.openharmony.tpc.thirdlib:PullToZoomInListView:1.0.3' } ## 示例 PullToZoomListView pullToZoomListView = (PullToZoomListView) findComponentById(ResourceTable.Id_list_view); ListItemProvider itemProvider = new ListItemProvider(this, adapterData, ResourceTable.Layout_list_item); pullToZoomListView.setItemProvider(itemProvider); ShapeElement shapeElement = new ShapeElement(this, ResourceTable.Graphic_list_divider); pullToZoomListView.setBoundary(shapeElement); pullToZoomListView.setBoundarySwitch(true); pullToZoomListView.setReboundEffect(false); pullToZoomListView.setHeaderBoundarySwitch(false); pullToZoomListView.getHeaderView().setPixelMap(ResourceTable.Media_img_header); pullToZoomListView.getHeaderView().setScaleMode(Image.ScaleMode.CLIP_CENTER); pullToZoomListView.setHeaderProvider(this, itemProvider); ##License Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.