记一些好看的Android开源菜单

BoomMenu

一个弹出式带动画的悬浮菜单,可以自定义样式。

直接上效果图:

添加依赖:

 implementation 'com.nightonke:boommenu:2.1.1'

然后就可以了,没错就是这么简单。然后就可以像正常控件一样使用它,

 <com.nightonke.boommenu.BoomMenuButton
        android:id="@+id/bmb"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:bmb_buttonEnum="textInsideCircle"
        app:bmb_piecePlaceEnum="piecePlace_dot_9_1"
        app:bmb_buttonPlaceEnum="buttonPlace_sc_9_1"
        app:bmb_normalColor="@color/colorPrimary"
        />

我实际上手效果图:

github主页有详细的教程(而且有中文教程)。github地址

CoolMenu

github地址

很炫酷的切换效果,添加依赖与上一个类似,

 implementation 'com.github.dxtt:coolMenu:v1.1'

并且加入

  <com.dxtt.coolmenu.CoolMenuFrameLayout
        android:id="@+id/rl_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        app:num="four"/>

理想效果:

但还有待完善

posted @ 2019-11-28 00:12  x1aolata  阅读(494)  评论(0编辑  收藏  举报