com.annahid.libs.artenus.unified
AdLayout
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 Type | Constructor 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 Type | Method and Description |
---|---|
protected final void | onLayout(boolean changed, int l, int t, int r, int b) |
protected final void | onMeasure(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:
|
AdLayout | ||||
---|---|---|---|---|
public AdLayout( Context context, AttributeSet attrs )Creates an AdLayout for the given application context with the given set of XML attributes. Parameters:
|
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:
|