Skip to content

doutuifei/AroundMenu

Repository files navigation

卫星菜单

预览

img

下载APK

方法介绍

  • setCentBtnView(View view):设置中间按钮,如果不设置会有默认的

  • setMenuViewList(List<T extends View> buttonList):菜单按钮

必须调用,否则没有菜单功能

  • setMenuOrientation(int menuOrientation):设置菜单显示的方向

  • openMenu();|closeMenu();:打开|关闭菜单

  • getMenuOrientation();:获取当前方向
    isShowing();:获取当前状态

  • setMenuClick(OnAroundMenuClick onAroundMenuClick):回调

   public interface OnAroundMenuClick {
           void onCenterClick(boolean isShowing);

           void onMenuClick(int position);
   }

attrs

默认中间按钮相关

  • menuBtnSize:默认按钮的大小
  • centerBtnColor:默认按钮的颜色

方向

  • menuOrientation
Orientatio Value
TOP 1
BOTTOM 2
LEFT 3
RIGHT 4
LEFT_TOP 5
LEFT_BOTTOM 6
RIGHT_TOP 7
RIGHT_BOTTOM 8

LICENSE

  Copyright [2018] [muzi 727784430@qq.com]

   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.

About

卫星菜单

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages