use of com.aviary.android.feather.effects.AbstractEffectPanel.OptionPanel in project mobile-android by photo.
the class FilterManager method prepareEffectPanel.
/**
* Prepare effect panel.
*
* @param effect
* the effect
* @param entry
* the entry
*/
private void prepareEffectPanel(final AbstractEffectPanel effect, final EffectEntry entry) {
View option_child = null;
View drawing_child = null;
if (effect instanceof OptionPanel) {
option_child = ((OptionPanel) effect).getOptionView(UIUtils.getLayoutInflater(), mContext.getOptionsPanelContainer());
mContext.getOptionsPanelContainer().addView(option_child);
}
if (effect instanceof ContentPanel) {
drawing_child = ((ContentPanel) effect).getContentView(UIUtils.getLayoutInflater());
drawing_child.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
mContext.getDrawingImageContainer().addView(drawing_child);
}
effect.onCreate(mBitmap);
}
Aggregations