Hierarchy

Properties

adjustableFontSizeStep?: number

Gets/sets adjustable-font step granularity. It is used in conjunction with the minimum and maximum text size in order to build the set of text sizes the system uses to choose from when auto-sizing

Android

Since

4.2.2

textDirection?: TextDirection

Gets/sets the text direction.

Property

Android

Since

4.0.2

cursorPosition: { start: number; end: number }

Gets/sets the cursor position of TextBox.

Property

Property

Property

Android

Deprecated

Since

2.0.8

Example

import TextBox from '@smartface/native/ui/textbox';

const textBox = new TextBox();
console.info(textBox.cursorPosition);

Type declaration

  • start: number
  • end: number
maxLength: number

Set an input filter to constrain the text length to the specified number. This property works only for Android.

Method

maxLength

Param

Android

Since

2.0.10

Deprecated

since 5.0.5 Use the UI.TextBox#maxLength instead.

yogaNode?: any
overScrollMode?: number

Gets/sets over-scroll mode for this view.

Property

= UI.Android.OverScrollMode.ALWAYS]

Android

Since

3.0.2

useForeground?: boolean

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.

Property

= false]

Android

Member

UI.View

Since

4.0.2

rippleEnabled?: boolean

Gets/sets ripple effect enabled for view. You should set UI.View#rippleColor rippleColor to see the effect.

Property

= false]

Android

Member

UI.View

Since

3.2.1

rippleColor?: IColor

Gets/sets ripple effect color for view.

Property

Android

Member

UI.View

Since

3.2.1

elevation?: number

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

Property

Android

Member

UI.View

See

Since

1.1.12

zIndex?: number

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.

Property

Android

Member

UI.View

Since

2.0.8

updateRippleEffectIfNeeded?: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc