Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
com.mig35:carousellayoutmanager
Advanced tools
Description and usage info are here: https://github.com/Azoft/CarouselLayoutManager
implementation 'com.mig35:carousellayoutmanager:version'
Please replace version
with the latest version:
This LayoutManager works only with fixedSized items in adapter. To use this LayoutManager add gradle (maven) dependence and use this code (you can use CarouselLayoutManager.HORIZONTAL as well):
final CarouselLayoutManager layoutManager = new CarouselLayoutManager(CarouselLayoutManager.VERTICAL);
final RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
recyclerView.setLayoutManager(layoutManager);
recyclerView.setHasFixedSize(true);
To enable items center scrolling add this CenterScrollListener:
recyclerView.addOnScrollListener(new CenterScrollListener());
To enable zoom effects that is enabled in gif add this line:
layoutManager.setPostLayoutListener(new CarouselZoomPostLayoutListener());
Full code from this sample:
// vertical and cycle layout
final CarouselLayoutManager layoutManager = new CarouselLayoutManager(CarouselLayoutManager.VERTICAL, true);
layoutManager.setPostLayoutListener(new CarouselZoomPostLayoutListener());
final RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
recyclerView.setLayoutManager(layoutManager);
recyclerView.setHasFixedSize(true);
recyclerView.setAdapter(new TestAdapter(this));
recyclerView.addOnScrollListener(new CenterScrollListener());
You can enable and disable circular loop using two arguments constructor. Pass true to enable loop and false to disable.
You can make carousel Vertically and Horizontally by changing first argument.
You can change zoom level of bottom cards by changing scaleMultiplier
argument in CarouselZoomPostLayoutListener
. Big thanks to JeneaVranceanu!
Feel free to get in touch.
Email: mig35@mig35.com
Website: http://www.azoft.com
Twitter: @azoft
LinkedIn: https://www.linkedin.com/company/azoft
Facebook: https://www.facebook.com/azoft.company
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.
FAQs
Description and usage info are here: https://github.com/Azoft/CarouselLayoutManager
We found that com.mig35:carousellayoutmanager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.