水平弯曲滑动菜单

时间:2016-04-14 09:03:14

标签: android xml android-layout horizontalscrollview

在我的应用程序中,我希望实现这样的事情

enter image description here

我尝试过很多提供圆形布局的库,例如: https://github.com/dmitry-zaitsev/CircleLayout

您可以在那里检查circlelayout的代码,而不是因为它太大而在此处发布。

我也尝试了圆形列表视图,如下所述: - Circular ListView (Items on Half Circle)

但是通过这种方法,我能够实现这样的目标: -

enter image description here

这看起来像摩天轮,但它不是我想要的,元素相互连接,滚动顺畅。

2 个答案:

答案 0 :(得分:2)

您可以尝试使用https://github.com/xresco/CircularLayoutCircular Scrollable layout

用于Android的

可滚动的圆形布局,您可以在其中添加项目,自定义半径,一次显示的项目数以及布局的X和Y偏移。

此外,您可以控制滚动布局时项目的呈现方式

固定和固定有两种模式。这两种模式在项目旋转方式上有所不同。以下是样本:

enter image description here

答案 1 :(得分:0)

你可以试试这个 https://github.com/siyamed/android-satellite-menu/

https://github.com/Andrew0000/Circular-Layout

我希望2中的任何人能帮到你。