Artenus 2D Framework
Artenus Reference
Provides a view group for an ad-driven game. It takes two View objects as children. The first one will be the main view and will take up the entire region, and the second one will be considered as an ad unit, and will be placed accordingly.
public final class AdLayout
extends ViewGroup

Constructor Summary

Modifier and TypeConstructor and Description
public AdLayout(Context context)
Creates an AdLayout for the given application context.
public AdLayout(Context context, AttributeSet attrs)
Creates an AdLayout for the given application context with the given set of XML attributes.
public AdLayout(Context context, AttributeSet attrs, int defStyle)
Creates an AdLayout for the given application context with the given set of XML attributes.

Method Summary

Modifier and TypeMethod and Description
protected final voidonLayout(boolean changed, int l, int t, int r, int b)
protected final voidonMeasure(int widthMeasureSpec, int heightMeasureSpec)

Methods inherited from java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AdLayout
public  AdLayout(
    Context context
)
Creates an AdLayout for the given application context.
Parameters:
contextThe application context
AdLayout
public  AdLayout(
    Context context,
    AttributeSet attrs
)
Creates an AdLayout for the given application context with the given set of XML attributes.
Parameters:
contextApplication context
attrsSet of attributes
AdLayout
public  AdLayout(
    Context context,
    AttributeSet attrs,
    int defStyle
)
Creates an AdLayout for the given application context with the given set of XML attributes.
Parameters:
contextApplication context
attrsSet of attributes
defStyleDefault style for the

Method Detail

onLayout
protected final void onLayout(
    boolean changed,
    int l,
    int t,
    int r,
    int b
)
onMeasure
protected final void onMeasure(
    int widthMeasureSpec,
    int heightMeasureSpec
)