本文整理匯總了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;
}