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)
Overload implementation of CoordinatorLayout It draws the foreground drawable
void drawableHotspotChanged(float x, float y)
Overload implementation of CoordinatorLayout.
Drawable getForeground()
Overload implementation of getForeground()
int getForegroundGravity()
Overload implementation of getForegroundGravity()
void jumpDrawablesToCurrentState()
Overload implementation of CoordinatorLayout
void setForeground(Drawable drawable)
Overload implementation of setForeground(Drawable)
void setForegroundGravity(int gravity)
Overload implementation of setForegroundGravity(int)
[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)

Overload implementation of CoordinatorLayout It draws the foreground drawable

public void drawableHotspotChanged (float x, float y)

Overload implementation of CoordinatorLayout. It sets the hotspot changes to foreground drawable

public Drawable getForeground ()

Overload implementation of getForeground()

Returns
  • Foreground drawable

public int getForegroundGravity ()

Overload implementation of getForegroundGravity()

Returns
  • Foreground gravity

public void jumpDrawablesToCurrentState ()

Overload implementation of CoordinatorLayout

public void setForeground (Drawable drawable)

Overload implementation of setForeground(Drawable)

Parameters
drawable Foreground drawable

public void setForegroundGravity (int gravity)

Overload implementation of setForegroundGravity(int)

Parameters
gravity Foreground gravity