...
Code Block | ||
---|---|---|
| ||
public final class CustomPopUtilityLayoutHandler extends PopUtilityLayoutHandler { private Context context; public CustomPopUtilityLayoutHandler(Context context) { super(context); this.context = context; } @Override public voidView onLayoutCreatedonViewCreated(ViewGroup parent) { LayoutInflater inflater = LayoutInflater.from(context); final FrameLayout layout = (FrameLayout) inflater.inflate( R.layout.your_pop_utility_view, parent, false ); return parent.addView(layout); } } |
Code Block | ||
---|---|---|
| ||
new PopConfig.Builder(getApplicationContext(), "YOUR_POP_UNIT_ID") .popUtilityLayoutHandlerClass(CustomPopUtilityLayoutHandler.class) .build(); |
...