本文整理汇总了Java中com.hlab.fabrevealmenu.view.FABRevealMenu类的典型用法代码示例。如果您正苦于以下问题:Java FABRevealMenu类的具体用法?Java FABRevealMenu怎么用?Java FABRevealMenu使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FABRevealMenu类属于com.hlab.fabrevealmenu.view包,在下文中一共展示了FABRevealMenu类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateView
import com.hlab.fabrevealmenu.view.FABRevealMenu; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mRootView = inflater.inflate(R.layout.fragment_image_detail, container, false);
toolbar = (Toolbar) mRootView.findViewById(R.id.detail_toolbar);
final FloatingActionButton fab = (FloatingActionButton) mRootView.findViewById(R.id.fab);
final FABRevealMenu fabMenu = (FABRevealMenu) mRootView.findViewById(R.id.fabMenu);
try {
if (fabMenu != null) {
fabMenu.bindAncherView(fab);
fabMenu.setOnFABMenuSelectedListener(this);
}
} catch (Exception e) {
e.printStackTrace();
}
bindViews();
setupToolbar();
setSharedAnimation();
return mRootView;
}
示例2: onCreateView
import com.hlab.fabrevealmenu.view.FABRevealMenu; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mRootView = inflater.inflate(R.layout.fragment_article_detail, container, false);
toolbar = (Toolbar) mRootView.findViewById(R.id.detail_toolbar);
mScrollView = (NestedScrollView) mRootView.findViewById(R.id.scrollview);
mPhotoView = (ImageView) mRootView.findViewById(R.id.photo);
mPhotoContainerView = mRootView.findViewById(R.id.photo_container);
fab = (FloatingActionButton) mRootView.findViewById(R.id.fab);
fabMenu = (FABRevealMenu) mRootView.findViewById(R.id.fabMenu);
try {
if (fabMenu != null) {
fabMenu.bindAncherView(fab);
fabMenu.setOnFABMenuSelectedListener(this);
}
} catch (Exception e) {
e.printStackTrace();
}
bindViews();
setupToolbar();
setSharedAnimation();
return mRootView;
}
示例3: getFabMenu
import com.hlab.fabrevealmenu.view.FABRevealMenu; //导入依赖的package包/类
public FABRevealMenu getFabMenu() {
return fabMenu;
}
示例4: setFabMenu
import com.hlab.fabrevealmenu.view.FABRevealMenu; //导入依赖的package包/类
public void setFabMenu(FABRevealMenu fabMenu) {
this.fabMenu = fabMenu;
}