use of org.holoeverywhere.addon.IAddonActivity in project HoloEverywhere by Prototik.
the class _HoloActivity method requestDecorView.
private boolean requestDecorView(View view, LayoutParams params, int layoutRes) {
if (mDecorView != null) {
return true;
}
mDecorView = new ActivityDecorView();
mDecorView.setId(android.R.id.content);
mDecorView.setProvider(this);
if (view != null) {
mDecorView.addView(view, params);
} else if (layoutRes > 0) {
getThemedLayoutInflater().inflate(layoutRes, mDecorView, true);
}
final LayoutParams p = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
performAddonAction(new AddonCallback<IAddonActivity>() {
@Override
public boolean action(IAddonActivity addon) {
return addon.installDecorView(mDecorView, p);
}
@Override
public void justPost() {
_HoloActivity.super.setContentView(mDecorView, p);
}
});
return false;
}
use of org.holoeverywhere.addon.IAddonActivity in project HoloEverywhere by Prototik.
the class Activity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
final Bundle state = instanceState(savedInstanceState);
mCreatedByThemeManager = getIntent().getBooleanExtra(ThemeManager.KEY_CREATED_BY_THEME_MANAGER, false);
mAttacher.inhert(getSupportApplication());
forceInit(state);
performAddonAction(new AddonCallback<IAddonActivity>() {
@Override
public void justAction(IAddonActivity addon) {
addon.onPreCreate(state);
}
});
super.onCreate(state);
performAddonAction(new AddonCallback<IAddonActivity>() {
@Override
public void justAction(IAddonActivity addon) {
addon.onCreate(state);
}
});
}
use of org.holoeverywhere.addon.IAddonActivity in project HoloEverywhere by Prototik.
the class Activity method onPostCreate.
@Override
protected void onPostCreate(Bundle sSavedInstanceState) {
final Bundle savedInstanceState = instanceState(sSavedInstanceState);
performAddonAction(new AddonCallback<IAddonActivity>() {
@Override
public void justAction(IAddonActivity addon) {
addon.onPostCreate(savedInstanceState);
}
});
super.onPostCreate(savedInstanceState);
}
use of org.holoeverywhere.addon.IAddonActivity in project HoloEverywhere by Prototik.
the class Activity method onConfigurationChanged.
@Override
public void onConfigurationChanged(final Configuration newConfig) {
final Configuration oldConfig = getResources().getConfiguration();
super.onConfigurationChanged(newConfig);
performAddonAction(new AddonCallback<IAddonActivity>() {
@Override
public void justAction(IAddonActivity addon) {
addon.onConfigurationChanged(oldConfig, newConfig);
}
});
}
Aggregations