public class

CustomView

extends Item
java.lang.Object
   ↳ net.pierrox.lightning_launcher.script.api.Item
     ↳ net.pierrox.lightning_launcher.script.api.CustomView

Summary

Public Methods
boolean getHorizontalGrab()
Return the current horizontal grab setting.
boolean getVerticalGrab()
Return the current vertical grab setting.
View getView()
Provides the view which has been built by the create script
void setHorizontalGrab(boolean grab)
Specify whether this view grabs events in the horizontal direction Grabbing will prevent the container to scroll.
void setVerticalGrab(boolean grab)
Specify whether this view grabs events in the vertical direction.
[Expand]
Inherited Methods
From class net.pierrox.lightning_launcher.script.api.Item
From class java.lang.Object

Public Methods

public boolean getHorizontalGrab ()

Return the current horizontal grab setting. Default is off.

public boolean getVerticalGrab ()

Return the current vertical grab setting. Default is off.

public View getView ()

Provides the view which has been built by the create script

Returns
  • a view, can be null

public void setHorizontalGrab (boolean grab)

Specify whether this view grabs events in the horizontal direction Grabbing will prevent the container to scroll. This behavior is needed when the custom view contains scrollable components (a seek bar, a scroll view)

Parameters
grab whether to grab events in the horizontal direction

public void setVerticalGrab (boolean grab)

Specify whether this view grabs events in the vertical direction. Grabbing will prevent the container to scroll. This behavior is needed when the custom view contains scrollable components (a list view, a scroll view, etc.)

Parameters
grab whether to grab events in the vertical direction