zoukankan      html  css  js  c++  java
  • 记一些好看的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"/>
    

    理想效果:

    但还有待完善

  • 相关阅读:
    The library 'hostpolicy.dll' required to execute the application was not found in
    矩阵乘法
    2019-11-1
    四边形不等式的应用
    2019-10-30
    2019-10-29
    差分与前缀和
    平衡树SPLAY
    可爱的树链剖分(染色)
    cable tv network
  • 原文地址:https://www.cnblogs.com/x1aolata/p/11946505.html
Copyright © 2011-2022 走看看