# LondonEyeLayoutManager **Repository Path**: HarmonyOS-tpc/LondonEyeLayoutManager ## Basic Information - **Project Name**: LondonEyeLayoutManager - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-17 - **Last Updated**: 2024-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## LondonEyeLayoutManager ## Introduction A LayoutManager that must be used with RecyclerComponent. When list is scrolled components are moved by circular trajectory ## Usage Instruction List mList = new ArrayList<>(Arrays.asList( "Passenger Cabin 1", "Passenger Cabin 2", "Passenger Cabin 3", "Passenger Cabin 4", "Passenger Cabin 5")); // define circle radius int circleRadius = 1176; // define center of the circle int xOrigin = -200; int yOrigin = 0; mRecyclerView = (DebugRecyclerView) rootView.findComponentById(ResourceTable.Id_recycler_view); mRecyclerView.setHeight(2000); mLondonEyeLayoutManager = new LondonEyeLayoutManager( circleRadius, xOrigin, yOrigin, mRecyclerView, // define scroll strategy NATURAL / PIXEL_PERFECT IScrollHandler.Strategy.NATURAL); mRecyclerView.setLayoutManager(mLondonEyeLayoutManager); mVideoRecyclerViewAdapter = new LondonEyeListAdapter(getContext(),mList); mRecyclerView.setAdapter(mVideoRecyclerViewAdapter); xml: in Ability or fraction file inflate xml with below components for arc. ## Installation instruction Method 1: Generate the .har package through the library and add the .har package to the libs folder. Add the following code to the entry gradle: implementation fileTree (dir: 'libs', include: ['*.jar', '*.har']) implementation 'io.openharmony.tpc.thirdlib:recyclercomponent:1.0.4' Method 2: Add following dependencies in entry build.gradle:** entry build.gradle: dependencies { implementation 'io.openharmony.tpc.thirdlib:recyclercomponent:1.0.4' implementation project(':london_eye_layout_manager') } # License Copyright 2015 Danylo Volokh 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.