CenterZoomLinearLayoutManager
A LinearLayoutManager with ability to zoom center child
Install / Use
/learn @hamedsj/CenterZoomLinearLayoutManagerREADME
CenterZoomLinearLayoutManager
A LinearLayoutManager with ability to zoom center child

Usage
1.Add CenterZoomLinearLayoutManager's dependency into your build.gradle file
dependencies {
implementation 'com.github.hamedsj:CenterZoomLinearLayoutManager:0.0.1'
}
2.Use CenterZoomLinearLayoutManager as LayoutManager of RecyclerView
//Initialize instance of centerZoomLinearLayoutManager
CenterZoomLinearLayoutManager myLayoutManager = new CenterZoomLinearLayoutManager(getApplicationContext())
//Change maximum distance of item to return to (1 - MinScale)x of it's size by percentage of width/height of recyclerView
//Default PercentDiffFromCenter is 0.8
myLayoutManager.setPercentDiffFromCenter(0.4f);
//Change MinScale
//Default MinScale is 0.1
myLayoutManager.setMinScale(0.2f);
//Set layoutManager for recyclerView
yourRecyclerView.setLayoutManager(myLayoutManager);
License
Copyright 2020 Shajaravi Hamid-Reza
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.
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
