Package com.nambimobile.widgets.efab

Types

ExpandableFab
Link copied to clipboard
class ExpandableFab : FloatingActionButton

The design and behavior of a Floating Action Button which can animate and expand to show optional FabOptions when clicked. It's the focal point for the ExpandableFab widget's functionality, from an end-user's perspective.

ExpandableFabLayout
Link copied to clipboard
class ExpandableFabLayout : CoordinatorLayout

The container and controller for all children views of the ExpandableFab widget (Overlay, ExpandableFab, FabOption, Label). The ExpandableFabLayout handles the bulk of the functionality for the ExpandableFab widget as a whole (from coordinating opening and closing animations to screen orientation changes, etc). See below for an example on how to easily set up the ExpandableFab widget using the ExpandableFabLayout as the containing ViewGroup.

FabOption
Link copied to clipboard
class FabOption : FloatingActionButton

The design and behavior of a single option within an ExpandableFab.

FabOptionPosition
Link copied to clipboard
enum FabOptionPosition : Enum<FabOptionPosition>

The legal positions of FabOptions, in relation to the previous FabOption in an orientation. By default, FabOptions are positioned ABOVE the previous FabOption in an orientation.

FabSize
Link copied to clipboard
enum FabSize : Enum<FabSize>

The legal sizes of ExpandableFabs and FabOptions.

Label
Link copied to clipboard
class Label : AppCompatTextView

A label of text attached to a view of the ExpandableFab widget.

LabelPosition
Link copied to clipboard
enum LabelPosition : Enum<LabelPosition>

The legal positions of Labels, in relation to the view they're attached to. By default, labels are positioned to the LEFT of the view they're attached to.

Orientation
Link copied to clipboard
enum Orientation : Enum<Orientation>

The screen orientations that the views of this widget can be in. If you only set a single ExpandableFab widget, it will automatically be used for both portrait and landscape orientations.

OrientationConfiguration
Link copied to clipboard
class OrientationConfiguration

Holder for all the views of an ExpandableFab widget in a specific Orientation. Not meant to be instantiated by clients, as an instance can be retrieved via ExpandableFabLayout.portraitConfiguration or ExpandableFabLayout.landscapeConfiguration. Values for the views will only be populated after they are added through calls to ExpandableFabLayout's addView methods (or after they're defined via XML).

Overlay
Link copied to clipboard
class Overlay : FrameLayout

An overlay that will show when an ExpandableFab is clicked in order to partially or fully obscure the screen's content, allowing the ExpandableFab and FabOptions to become more apparent.