public class

ForegroundCoordinatorLayout

extends CoordinatorLayout
implements ForegroundLayout
java.lang.Object
   ↳ CoordinatorLayout
     ↳ com.pdftron.pdf.widget.ForegroundCoordinatorLayout

Class Overview

A Coordinator layout that can draw foreground drawable

Summary

Public Constructors
ForegroundCoordinatorLayout(Context context)
ForegroundCoordinatorLayout(Context context, AttributeSet attrs)
ForegroundCoordinatorLayout(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void draw(Canvas canvas)
void drawableHotspotChanged(float x, float y)
It sets the hotspot changes to foreground drawable
Drawable getForeground()
The implementation should provide the foreground drawable.
int getForegroundGravity()
The implementation should specify the foreground gravity.
void jumpDrawablesToCurrentState()
void setForeground(Drawable drawable)
The implementation should set the foreground drawable.
void setForegroundGravity(int gravity)
The implementation should set the foreground gravity.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.widget.ForegroundLayout

Public Constructors

public ForegroundCoordinatorLayout (Context context)

public ForegroundCoordinatorLayout (Context context, AttributeSet attrs)

public ForegroundCoordinatorLayout (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void draw (Canvas canvas)

public void drawableHotspotChanged (float x, float y)

It sets the hotspot changes to foreground drawable

public Drawable getForeground ()

The implementation should provide the foreground drawable.

Returns
  • The foreground drawable

public int getForegroundGravity ()

The implementation should specify the foreground gravity.

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

public void jumpDrawablesToCurrentState ()

public void setForeground (Drawable drawable)

The implementation should set the foreground drawable.

Parameters
drawable The foreground drawable

public void setForegroundGravity (int gravity)

The implementation should set the foreground gravity.

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