水平弯曲滑动菜单 [英] Horizontal Curved Sliding menu
问题描述
在我的应用中,我想要实现类似这样的功能
In my app i want to achieve some thing like this
我尝试了很多提供圆形布局的库,例如: https://github.com/dmitry-zaitsev/CircleLayout
I have tried a lot of libraries which provide a circular layout for example like this one:- https://github.com/dmitry-zaitsev/CircleLayout
您可以在其中检查circlelayout的代码,而不要在此处发布,因为它太大了.
You can check the code for circlelayout there , not posting here as its too big.
我也尝试过在此处讨论的通告列表视图:- 圆形ListView(半圆上的项)
I have also tried Circular List view as discussed in here:- Circular ListView (Items on Half Circle)
但是使用这两种方法,我都可以实现以下目标:-
But with both the approach i am able to achieve something like this :-
这看起来像摩天轮,但不是我想要的,元素相互连接并且滚动很流畅.
This looks something like Ferris wheel but its not what i want , where the elements are connected to each other and the scrolling is smooth.
推荐答案
您可以尝试使用 https://github .com/xresco/CircularLayout 和圆形可滚动布局
适用于Android的可滚动圆形布局,您可以在其中添加项目,自定义半径,一次显示的项目数以及布局的X和Y偏移.
A scrollable circular layout for android where you can add items, customize the radius, the number of items displayed at a time and the X and Y offset of the layout.
此外,您可以控制滚动布局时项目的呈现方式.
有固定和固定两种模式.两种模式在项目旋转方式上有所不同.这里是示例:
There are two modes Pinned and Fixed. The two modes differ in the way the items rotate. Here are the samples:
这篇关于水平弯曲滑动菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!