Interface IView
Defines interface which allows to get access to some of android.view.View methods
Namespace:
Assembly: .dll
Syntax
public interface IView extends IHitTestable, IContextProvider
Methods
getBackground()
Gets the background Drawable for this IView instance
Declaration
public abstract Drawable getBackground()
Returns
Type | Description |
---|---|
android.graphics.drawable.Drawable | The current background |
getHeight()
Gets the IView height in pixels
Declaration
public abstract int getHeight()
Returns
Type | Description |
---|---|
int | The height in pixels |
getLayoutParams()
Gets the ViewGroup.LayoutParams for this IView instance
Declaration
public abstract ViewGroup.LayoutParams getLayoutParams()
Returns
Type | Description |
---|---|
android.view.ViewGroup.LayoutParams | The ViewGroup.LayoutParams for this IView instance |
getPaddingBottom()
Returns the lefbottomt padding of this IView instance
Declaration
public abstract int getPaddingBottom()
Returns
Type | Description |
---|---|
int | The bottom padding in pixels |
getPaddingLeft()
Returns the left padding of this IView instance
Declaration
public abstract int getPaddingLeft()
Returns
Type | Description |
---|---|
int | The left padding in pixels |
getPaddingRight()
Returns the right padding of this IView instance
Declaration
public abstract int getPaddingRight()
Returns
Type | Description |
---|---|
int | The right padding in pixels |
getPaddingTop()
Returns the top padding of this IView instance
Declaration
public abstract int getPaddingTop()
Returns
Type | Description |
---|---|
int | The top padding in pixels |
getVisibility()
Gets the visibility for this IView instance
Declaration
public abstract int getVisibility()
Returns
Type | Description |
---|---|
int | The current visibility |
getWidth()
Gets the IView width in pixels
Declaration
public abstract int getWidth()
Returns
Type | Description |
---|---|
int | The width in pixels |
invalidate()
Invalidates this IView instance
Declaration
public abstract void invalidate()
postInvalidate()
Posts invalidate for this IView instance
Declaration
public abstract void postInvalidate()
requestLayout()
Requests layout for this IView instance
Declaration
public abstract void requestLayout()
setLayoutParams(ViewGroup.LayoutParams params)
Sets the ViewGroup.LayoutParams for this IView instance
Declaration
public abstract void setLayoutParams(ViewGroup.LayoutParams params)
Parameters
Type | Name | Description |
---|---|---|
android.view.ViewGroup.LayoutParams | params | The new ViewGroup.LayoutParams |
setVisibility(int visibility)
Sets visibility for this IView instance
Declaration
public abstract void setVisibility(int visibility)
Parameters
Type | Name | Description |
---|---|---|
int | visibility | The new visibility value |