-
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);
}
- 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 |
Copyright [2018] [muzi [email protected]]
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.