public interface

ForegroundLayout

com.pdftron.pdf.widget.ForegroundLayout
Known Indirect Subclasses

Class Overview

Interface to facilitate drawing a foreground drawable, similar to android.widget.FrameLayout, for API versions before 23 (where android.view.View supports foregrounds natively).

Summary

Public Methods
abstract Drawable getForeground()
The implementation should provide the foreground drawable.
abstract int getForegroundGravity()
The implementation should specify the foreground gravity.
abstract void setForeground(Drawable foreground)
The implementation should set the foreground drawable.
abstract void setForegroundGravity(int gravity)
The implementation should set the foreground gravity.

Public Methods

public abstract Drawable getForeground ()

The implementation should provide the foreground drawable.

Returns
  • The foreground drawable

public abstract int getForegroundGravity ()

The implementation should specify the foreground gravity.

Returns
  • The gravity (see android.view.Gravity)

public abstract void setForeground (Drawable foreground)

The implementation should set the foreground drawable.

Parameters
foreground The foreground drawable

public abstract void setForegroundGravity (int gravity)

The implementation should set the foreground gravity.

Parameters
gravity The gravity (see android.view.Gravity)