本文整理匯總了Java中org.holoeverywhere.addon.IAddonFragment類的典型用法代碼示例。如果您正苦於以下問題:Java IAddonFragment類的具體用法?Java IAddonFragment怎麽用?Java IAddonFragment使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IAddonFragment類屬於org.holoeverywhere.addon包,在下文中一共展示了IAddonFragment類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onDestroyView
import org.holoeverywhere.addon.IAddonFragment; //導入依賴的package包/類
@Override
public void onDestroyView() {
performAddonAction(new AddonCallback<IAddonFragment>() {
@Override
public void justAction(IAddonFragment addon) {
addon.onDestroyView();
}
});
super.onDestroyView();
}
示例2: onViewCreated
import org.holoeverywhere.addon.IAddonFragment; //導入依賴的package包/類
@Override
public void onViewCreated(final View view, final Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
performAddonAction(new AddonCallback<IAddonFragment>() {
@Override
public void justAction(IAddonFragment addon) {
addon.onViewCreated(view, savedInstanceState);
}
});
}
示例3: addon
import org.holoeverywhere.addon.IAddonFragment; //導入依賴的package包/類
@Override
public <T extends IAddonFragment> T addon(Class<? extends IAddon> clazz) {
return mAttacher.addon(clazz);
}
示例4: performAddonAction
import org.holoeverywhere.addon.IAddonFragment; //導入依賴的package包/類
@Override
public boolean performAddonAction(AddonCallback<IAddonFragment> callback) {
return mAttacher.performAddonAction(callback);
}