Adjacent Files

Project Info

. > slideactionview > src > main > java > me > jfenn > slideactionview > SlideActionView.java

setListener

Type: public void

Specify an interface to pass events to when an action is selected.

Parameter Name Description
listener An interface to pass events to.

setLeftIcon

Type: public void

Specifies the icon to display on the left side of the view, as a Drawable. If it is just as easier to pass a Bitmap, you should avoid using this method; all it does is convert the drawable to a bitmap, then call the same method again.

Parameter Name Description
drawable The Drawable to use as an icon.

setLeftIcon

Type: public void

Specifies the icon to display on the left side of the view.

Parameter Name Description
bitmap The Bitmap to use as an icon.

setRightIcon

Type: public void

Specifies the icon to display on the right side of the view, as a Drawable. If it is just as easier to pass a Bitmap, you should avoid using this method; all it does is convert the drawable to a bitmap, then call the same method again.

Parameter Name Description
drawable The Drawable to use as an icon.

setRightIcon

Type: public void

Specifies the icon to display on the right side of the view.

Parameter Name Description
bitmap The Bitmap to use as an icon.

setTouchHandleColor

Type: public void

Specify the color of the touch handle in the center of the view. The alpha of this color is modified to be somewhere between 0 and 150.

Parameter Name Description
handleColor The color of the touch handle.

getTouchHandleColor

Type: @ColorInt public int

Returned Value: The color of the touch handle in the center of the view.

setOutlineColor

Type: public void

Specify the color of the random outlines drawn all over the place.

Parameter Name Description
outlineColor The color of the random outlines.

getOutlineColor

Type: @ColorInt public int

Returned Value: The color of the random outlines drawn all over the place.

setIconColor

Type: public void

Specify the color applied to the left/right icons as a filter.

Parameter Name Description
iconColor The color that the left/right icons are filtered by.

getIconColor

Type: @ColorInt public int

Returned Value: The color applied to the left/right icons as a filter.

This site may do shady things with cookies and stuff because it's evil. Please don't read my privacy policy. close