Skip navigation links
C D E G H I L O P S T W 

C

com.github.angads25.toggle.interfaces - package com.github.angads25.toggle.interfaces
 
com.github.angads25.toggle.model - package com.github.angads25.toggle.model
 
com.github.angads25.toggle.widget - package com.github.angads25.toggle.widget
 

D

DayNightSwitch - Class in com.github.angads25.toggle.widget
Created by Angad Singh on 27/1/18.
DayNightSwitch(Context) - Constructor for class com.github.angads25.toggle.widget.DayNightSwitch
Simple constructor to use when creating a switch from code.
DayNightSwitch(Context, AttributeSet) - Constructor for class com.github.angads25.toggle.widget.DayNightSwitch
Constructor that is called when inflating a switch from XML.
DayNightSwitch(Context, AttributeSet, int) - Constructor for class com.github.angads25.toggle.widget.DayNightSwitch
Perform inflation from XML and apply a class-specific base style from a theme attribute.

E

enabled - Variable in class com.github.angads25.toggle.model.ToggleableView
Field to determine whether switch is enabled/disabled.

G

getColorBorder() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns the color value for Switch border.
getColorDisabled() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns the color value for Switch disabled state.
getColorOff() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns the color value for colorOff.
getColorOn() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns the color value for colorOn.
getLabelOff() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns text label when switch is in off state.
getLabelOn() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns text label when switch is in on state.
getTextSize() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns the text size for Switch on/off label.
getTypeface() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Returns the typeface for Switch on/off labels.

H

height - Variable in class com.github.angads25.toggle.model.ToggleableView
 

I

isEnabled() - Method in class com.github.angads25.toggle.model.ToggleableView
Returns the enabled status for this switch.
isOn - Variable in class com.github.angads25.toggle.model.ToggleableView
Field to determine whether switch is on/off.
isOn() - Method in class com.github.angads25.toggle.model.ToggleableView
Returns the boolean state of this Switch.

L

LabeledSwitch - Class in com.github.angads25.toggle.widget
Created by Angad Singh on 27/1/18.
LabeledSwitch(Context) - Constructor for class com.github.angads25.toggle.widget.LabeledSwitch
Simple constructor to use when creating a switch from code.
LabeledSwitch(Context, AttributeSet) - Constructor for class com.github.angads25.toggle.widget.LabeledSwitch
Constructor that is called when inflating a switch from XML.
LabeledSwitch(Context, AttributeSet, int) - Constructor for class com.github.angads25.toggle.widget.LabeledSwitch
Perform inflation from XML and apply a class-specific base style from a theme attribute.

O

onDraw(Canvas) - Method in class com.github.angads25.toggle.widget.DayNightSwitch
 
onDraw(Canvas) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
 
onMeasure(int, int) - Method in class com.github.angads25.toggle.widget.DayNightSwitch
 
onMeasure(int, int) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
 
onStateChanged(View, int) - Method in interface com.github.angads25.toggle.interfaces.OnStateChangedListener
Called when a view changes it's state.
OnStateChangedListener - Interface in com.github.angads25.toggle.interfaces
Created by Angad Singh on 25/2/18.
onSwitched(ToggleableView, boolean) - Method in interface com.github.angads25.toggle.interfaces.OnToggledListener
Called when a view changes it's state.
OnToggledListener - Interface in com.github.angads25.toggle.interfaces
Created by Angad Singh on 28/1/18.
onToggledListener - Variable in class com.github.angads25.toggle.model.ToggleableView
Listener used to dispatch switch events.
onTouchEvent(MotionEvent) - Method in class com.github.angads25.toggle.widget.DayNightSwitch
Method to handle touch screen motion events.
onTouchEvent(MotionEvent) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Method to handle touch screen motion events.

P

performClick() - Method in class com.github.angads25.toggle.widget.DayNightSwitch
Call this view's OnClickListener, if it is defined.
performClick() - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Call this view's OnClickListener, if it is defined.

S

setColorBorder(int) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the color value for Switch disabled state.
setColorDisabled(int) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the color value for Switch disabled state.
setColorOff(int) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the off color value of this Switch.
setColorOn(int) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the on color value of this Switch.
setEnabled(boolean) - Method in class com.github.angads25.toggle.model.ToggleableView
Set the enabled state of this switch.
setLabelOff(String) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes text label when switch is in off state.
setLabelOn(String) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes text label when switch is in on state.
setOn(boolean) - Method in class com.github.angads25.toggle.model.ToggleableView
Changes the boolean state of this Switch.
setOn(boolean) - Method in class com.github.angads25.toggle.widget.DayNightSwitch
Changes the boolean state of this Switch.
setOn(boolean) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the boolean state of this Switch.
setOnToggledListener(OnToggledListener) - Method in class com.github.angads25.toggle.model.ToggleableView
Register a callback to be invoked when the boolean state of switch is changed.
setTextSize(int) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the text size for Switch on/off label.
setTypeface(Typeface) - Method in class com.github.angads25.toggle.widget.LabeledSwitch
Changes the typeface for Switch on/off labels.

T

ToggleableView - Class in com.github.angads25.toggle.model
Created by Angad Singh on 24/2/18.
ToggleableView(Context) - Constructor for class com.github.angads25.toggle.model.ToggleableView
Simple constructor to use when creating a switch from code.
ToggleableView(Context, AttributeSet) - Constructor for class com.github.angads25.toggle.model.ToggleableView
Constructor that is called when inflating a switch from XML.
ToggleableView(Context, AttributeSet, int) - Constructor for class com.github.angads25.toggle.model.ToggleableView
Perform inflation from XML and apply a class-specific base style from a theme attribute.

W

width - Variable in class com.github.angads25.toggle.model.ToggleableView
 
C D E G H I L O P S T W 
Skip navigation links