use of carbon.CarbonContextWrapper in project Carbon by ZieIony.
the class FloatingActionMenu method setMenu.
public void setMenu(int resId) {
Menu menu = new MenuBuilder(new CarbonContextWrapper(getContentView().getContext()));
MenuInflater inflater = new MenuInflater(getContentView().getContext());
inflater.inflate(resId, menu);
setMenu(menu);
}
use of carbon.CarbonContextWrapper in project Carbon by ZieIony.
the class BottomBar method setMenu.
public void setMenu(int resId) {
Menu menu = new MenuBuilder(new CarbonContextWrapper(getContext()));
MenuInflater inflater = new MenuInflater(getContext());
inflater.inflate(resId, menu);
setMenu(menu);
}
use of carbon.CarbonContextWrapper in project Carbon by ZieIony.
the class NavigationView method setMenu.
public void setMenu(int resId) {
Menu menu = new MenuBuilder(new CarbonContextWrapper(getContext()));
MenuInflater inflater = new MenuInflater(getContext());
inflater.inflate(resId, menu);
setMenu(menu);
}
Aggregations