Gets/sets color of the thumb when Switch is OFF. It is set to gray by default. thumbOffColor deprecated 1.1.8 use android.thumbOffColor instead.
Gets/sets the toggle image of the switch. This property should be used before assigning colors.
Gets/sets the thumb image of the switch. This property should be used before assigning colors.
Gets/sets the background of the switch when it is OFF. It is set to gray by default. This property works only for Android.
import Switch from '@smartface/native/ui/switch';
import Color from '@smartface/native/ui/color';
var mySwitch = new Switch();
mySwitch.android.toggleOffColor = Color.DARKGRAY;
Gets/sets over-scroll mode for this view.
Gets/sets foreground of the view for ripple effect. This property should be set before rippleColor. This property only supported for api level 23 and above.
Gets/sets ripple effect enabled for view. You should set UI.View#rippleColor rippleColor to see the effect.
Gets/sets ripple effect color for view.
Gets/Sets the elevation of the view. For the views that has StateListAnimator natively like Button, will lost its own StateListAnimation when elevation value changed. For details : https://developer.android.com/training/material/shadows-clipping.html
Gets/sets the depth location of the view relative to its elevation. To put view over button, you have to change zIndex value after Android Lollipop. On android, default elevation value of button is bigger than other view. This property affects after Android Lollipop. No-op before api level 21.
Generated using TypeDoc